05.02.2012, 20:48
lmao its a simplest way to make it:
use zcmd,sscanf
use zcmd,sscanf
pawn Код:
CMD:givegunall(playerid,params[])
{
for(new i = 0; i<MAX_PLAYERS; i++)
{
if(PlayerInfo[playerid][pAdmin[ < 5) return SCM(playerid,-1,"You must have level 5!");
if(sscanf(params,"dd",wep,ammo)) return SCM(playerid,-1,"ERROR:/givegunall [wepid] [ammo]");
if(wep < 0 ||wep == 19 || wep == 20 || wep == 21 || wep > 45) return SCM(playerid,01,"ERROR:This wep id is invalid");
if(ammo < 0) return SCM(playerid,-1,"ERROR:invalid ammo amount");
GivePlayerWeapon(i,wep,ammo);
}
return 1;
}