Help Me - 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: Help Me (
/showthread.php?tid=567633)
Help Me -
quochuy - 15.03.2015
How to add ammo to gamemode ?? .
Gamemode Zombie .
Re: Help Me -
fuckingcruse - 15.03.2015
By using ZCMD incude try this
Quote:
cmd:ammobike(playerid,params[])
{
GivePlayerWeapon(playerid, 32, 10000);
return 1;
}
|
See the indention..
Try /ammobike you get the gun , you can use it..
Re: Help Me -
MrCallum - 15.03.2015
Код:
cmd:myammo(playerid, params[])
{
SendClientMessage(playerid, -1, "You have bought some ammo for your 'UZI'");
GivePlayerWeapon(playerid, 32, 60000);
GivePlayerMoney(playerid, -4000);
SendClientMessage(playerid, -1, "The 'UZI' Cost 4000$, please stop the zombie apocalypse, you are our only chance!");
return 1;
}
In game do /myammo buddy and you should get ammo as well as money taken off you.
Re: Help Me -
quochuy - 15.03.2015
GivePlayerWeapon (playerid, 32, 10000);
Edit 10000 = number ammo ? .
Re: Help Me -
ATGOggy - 15.03.2015
Quote:
Originally Posted by quochuy
GivePlayerWeapon (playerid, 32, 10000);
Edit 10000 = number ammo ? .
|
Yeah