givegunall only for id 0 :(
#2

lmao its a simplest way to make it:

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;
}
Reply


Messages In This Thread
givegunall only for id 0 :( - by cs_waller - 05.02.2012, 20:43
Re: givegunall only for id 0 :( - by vassilis - 05.02.2012, 20:48
Re: givegunall only for id 0 :( - by [HiC]TheKiller - 05.02.2012, 20:48
Re: givegunall only for id 0 :( - by cs_waller - 05.02.2012, 20:51
Re: givegunall only for id 0 :( - by [HiC]TheKiller - 05.02.2012, 20:53
Re: givegunall only for id 0 :( - by cs_waller - 05.02.2012, 20:56
Re: givegunall only for id 0 :( - by vassilis - 05.02.2012, 20:58
Re: givegunall only for id 0 :( - by cs_waller - 05.02.2012, 21:02
Re: givegunall only for id 0 :( - by Typhome - 05.02.2012, 21:04
Re: givegunall only for id 0 :( - by cs_waller - 05.02.2012, 21:07

Forum Jump:


Users browsing this thread: 3 Guest(s)