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



ResetPlayerWeapons - MerryDeer - 19.11.2016

Hi,

Can i ResetPlayerWeapons and instantly GivePlayerWeapon, or need set timer?


Re: ResetPlayerWeapons - BiosMarcel - 19.11.2016

One command waits for another to be done, so yes you can do it without timers.


Re: ResetPlayerWeapons - Micko123 - 19.11.2016

ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, ID);

And thats it.. Put it in that order and you are fine :d


Re: ResetPlayerWeapons - Bolex_ - 19.11.2016

Quote:
Originally Posted by Micko123
Посмотреть сообщение
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, ID);

And thats it.. Put it in that order and you are fine :d
You forgot something!

pawn Код:
GivePlayerWeapon(playerid, weaponid, ammo);



Re: ResetPlayerWeapons - GoldenLion - 19.11.2016

Step 1: Add the code and compile the gamemode.
Step 2: Start your server.
Step 3: Go in-game.
There is your answer.