SA-MP Forums Archive
*** I can't name topics well! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: *** I can't name topics well! (/showthread.php?tid=388980)



*** I can't name topics well! - Smith_Jim - 31.10.2012

hello,everybody hello..哈哈
i need a scriptReward)

i want make if admin use command /reward (playerid)
then player can get reward=1,he can use reward exchange some weapon and full vest
like this:2 reward can get m4a1


Re: scripting help - RajatPawar - 31.10.2012

I am just a beginner, but I am just gonna give a try.
With ZCMD.
Quote:

CMD:reward(playerid,params[])
{
if IsPlayerAdmin((playerid)==0);
{
SendClientMessage(playerid, -1, "Unknown command.");
}
else
GivePlayerWeapon(playerid, 38, 999)
return 1;
}

and so on...
Is this correct? I have a doubt about the parameters.