Take a weapon and give other one. - 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: Take a weapon and give other one. (
/showthread.php?tid=176502)
Take a weapon and give other one. -
xDENNNIISSSS - 13.09.2010
Well,
In my gamemode the player gets a new weapon how higher his score is.
But now he have to die first before he gets hes new weapon.
How can I take the weapon and give a new weapon without he has to die first.
I am now using
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,22,1000);
+ Whats the code for unlimited ammo?
Re: Take a weapon and give other one. -
xDENNNIISSSS - 13.09.2010
Bump (a) need this
Re: Take a weapon and give other one. -
Libra_PL - 13.09.2010
Quote:
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,22,1000);
+ Whats the code for unlimited ammo?
|
Just change "1000" to "99999", like this:
GivePlayerWeapon(playerid,22,99999);
I don't think someone would lose all ammo for killing