Help on playerspawn!! - 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: Help on playerspawn!! (
/showthread.php?tid=259685)
Help on playerspawn!! -
XTM-Gaming - 05.06.2011
i know all about on playerspawn but, what do you call it well a player dies and spawns? - i wanted to make the player loose cash + weapons on spawn after death in other words ResetPlayerWeapons and giveplayermoney
Help will be be appreciated
Thanks
Re: Help on playerspawn!! -
Johnson_boy - 05.06.2011
OnPlayerSpawn is called when surprise, surprise, player spawns. When player dies OnPlayerDeath is called.
Also I don't think you need to reset weapons since weapons are reseted on death. And you can just add GivePlayerMoney(playerid, -x); OnPlayerDeath