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 bool:First2 = false;
- new Count, string[128];
- new i, slot, weap, ammo;
- for(i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- for(slot = 0; slot < 14; slot++)
- {
- GetPlayerWeaponData(i, slot, weap, ammo);
- if(ammo != 0 && weap == 38 || ammo != 0 && weap == 37 || ammo != 0 && weap == 36 || ammo != 0 && weap == 35)
- {
- Count++;
- if(!First2)
- {
- format(string, sizeof(string), "Illegal Weapon: (%d)%s(ammo%d)", i, PlayerName2(i), ammo);
- First2 = true;
- }
- else format(string,sizeof(string),"%s, (%d)%s(ammo%d) ",string, i, PlayerName2(i), ammo);
- }
- }
- }
- }
- if(Count == 0)
- return IRC_GroupSay(gGroupID, channel, "No player has Illegal Weapon!");
- else return IRC_GroupSay(gGroupID, channel,string);
- }
- else return IRC_GroupSay(gGroupID, channel,"You beed to be HalfOp to use this command.");
- }
Advertisement
Add Comment
Please, Sign In to add comment