About my Give all Commands ?
#1

pawn Код:
CMD:giveallgun(playerid, params[])
{
  for(new i = 0; i < MAX_PLAYERS; i ++)
  {
  if(pInfo[playerid][pAdminLevel] >= 4)
  {
         new weapid, ammo;
         if(sscanf(params,"dd", weapid, ammo)) return SendClientMessage(playerid, red,"[USAGE]: /giveallweapon [weapon] [ammo]");
         if(IsValidWeapon(weapid))
         {
          if(IsPlayerConnected(i))
          {
                GivePlayerWeapon(i, weapid, ammo);
                new str[150];
                format(str, sizeof(str),"Administrator %s has given everyone %d ammo of weapon %d", PlayerName(playerid), ammo, weapid);
                SendClientMessage(i, orange, str);
          }
     }
     else return SendClientMessage(playerid, red,"[ADMIN]: You are not allowed to give this weapon!");
  }
  else return SendClientMessage(playerid, red,"[ADMIN]: You are not high enough level to use this command!");
  }
  return 1;
}
using Mysql and i compile this is said lose identifine help please +REP +REP
Reply


Messages In This Thread
About my Give all Commands ? - by donhu789 - 23.12.2013, 05:14
Re: About my Give all Commands ? - by Emmet_ - 23.12.2013, 05:37
Re: About my Give all Commands ? - by donhu789 - 23.12.2013, 05:38

Forum Jump:


Users browsing this thread: 1 Guest(s)