Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IRCCMD:iw(botid, channel[], user[], host[], params[])
- {
- if (IRC_IsHalfop(botid, channel, user))
- {
- new weap, ammo;
- new string[128];
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i)) {
- GetPlayerWeaponData(i, 7, weap, ammo);
- if(ammo > 1 && weap == 38) {
- format(string,sizeof(string),"%s has a Mingun with %d ammo", PlayerName2(i), ammo);
- IRC_GroupSay(gGroupID, channel, string);
- }
- GetPlayerWeaponData(i, 7, weap, ammo);
- if(ammo > 1 && weap == 37) {
- format(string,sizeof(string),"%s has a Flamethrower with %d ammo", PlayerName2(i), ammo);
- IRC_GroupSay(gGroupID, channel, string);
- }
- GetPlayerWeaponData(i, 7, weap, ammo);
- if(ammo > 1 && weap == 36) {
- format(string,sizeof(string),"%s has a Heatseeker with %d ammo", PlayerName2(i), ammo);
- IRC_GroupSay(gGroupID, channel, string);
- }
- GetPlayerWeaponData(i, 7, weap, ammo);
- if(ammo > 1 && weap == 35) {
- format(string,sizeof(string),"INFO: %s has a RocketLuncher with %d ammo", PlayerName2(i), ammo);
- IRC_GroupSay(gGroupID, channel, string);
- }
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment