SA-MP Forums Archive
CMD - 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: CMD (/showthread.php?tid=578477)



CMD - KamalBa - 19.06.2015

Код:
CMD:weapons(playerid,params[])
{
SendClientMessage(playerid,COLOR_LRED, "Choose any weapon do you like you have a lot of weapons in the list");
GivePlayerWeapon(playerid, 33, 100);
GivePlayerWeapon(playerid, 34, 100);
GivePlayerWeapon(playerid, 32, 100);
GivePlayerWeapon(playerid, 33, 100);
GivePlayerWeapon(playerid, 38, 250);

return 1;
}
I made this but i don't know how to do it like if you type /weapons it will show you list and if you want gun id 33 you need to pay 500$ for it (for example)

Anyone can help ?

(when i type weapons, it's give me all the weapons in the list)


Re: CMD - IstuntmanI - 19.06.2015

I posted something like that a long time ago: https://sampforum.blast.hk/showthread.php?tid=284296 . Feel free to use it. (it is not the most efficient method, it can be much shorter, but you can take some examples from it)


Re: CMD - KamalBa - 19.06.2015

Got a lot of errors!


Re: CMD - DarkLored - 20.06.2015

Show the code where you are getting the errors and the code.