weapons script question. - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: weapons script question. (
/showthread.php?tid=263441)
weapons script question. -
ThePwherer - 21.06.2011
Hi i have a question.
i want to turn my weapon command into...
/w2 (weapon name) (player inserts ammount of ammo)
can anyone help me or at least give me a start?
Thank you for helping.
So far i have...
Код:
if (strcmp("/w2 ak47", cmdtext, true) == 0)
{
GivePlayerWeapon(playerid,30,99999);
SendClientMessage(playerid, 0xFFFFFFFF, "You earned a ak47!");
return 1;
}