jlalt

AAAA

Aug 21st, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.65 KB | None | 0 0
  1. IRCCMD:iw(botid, channel[], user[], host[], params[])
  2. {
  3.   if (IRC_IsHalfop(botid, channel, user))
  4.     {
  5.      new weap, ammo;
  6.      new string[128];
  7.      for(new i = 0; i < MAX_PLAYERS; i++)
  8.      {
  9.       if(IsPlayerConnected(i)) {
  10.       GetPlayerWeaponData(i, 7, weap, ammo);
  11.       if(ammo > 1 && weap == 38 || ammo > 1 && weap == 37 || ammo > 1 && weap == 36 || ammo > 1 && weap == 35) {
  12.       format(string,sizeof(string),"%s has illegal weapon with %d ammo", PlayerName2(i), ammo);
  13.       IRC_GroupSay(gGroupID, channel, string);
  14.       } else return IRC_GroupSay(gGroupID, channel,"No player have illegal weapon");
  15.     }
  16.    }
  17.   }
  18.   return 1;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment