jlalt

IRCIW

Aug 17th, 2015
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.57 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) {
  12.                         format(string,sizeof(string),"%s has a Mingun with %d ammo", PlayerName2(i), ammo);
  13.                         IRC_GroupSay(gGroupID, channel, string);
  14.                         }
  15.                         GetPlayerWeaponData(i, 7, weap, ammo);
  16.                         if(ammo > 1 && weap == 37) {
  17.                         format(string,sizeof(string),"%s has a Flamethrower with %d ammo", PlayerName2(i), ammo);
  18.                         IRC_GroupSay(gGroupID, channel, string);
  19.                         }
  20.                         GetPlayerWeaponData(i, 7, weap, ammo);
  21.                         if(ammo > 1 && weap == 36) {
  22.                         format(string,sizeof(string),"%s has a Heatseeker with %d ammo", PlayerName2(i), ammo);
  23.                         IRC_GroupSay(gGroupID, channel, string);
  24.                         }
  25.                         GetPlayerWeaponData(i, 7, weap, ammo);
  26.                         if(ammo > 1 && weap == 35) {
  27.                         format(string,sizeof(string),"INFO: %s has a RocketLuncher with %d ammo", PlayerName2(i), ammo);
  28.                         IRC_GroupSay(gGroupID, channel, string);
  29.                         }
  30.                       }
  31.                   }
  32.              }
  33.             return 1;
  34.       }
Advertisement
Add Comment
Please, Sign In to add comment