OnPlayerSpaw - 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: OnPlayerSpaw (
/showthread.php?tid=550177)
OnPlayerSpaw -
BoU3A - 11.12.2014
Hello is OnPlayerSpawn the best option to load player data like, skin interior postion etc.?
Re: OnPlayerSpaw -
PowerPC603 - 11.12.2014
Usually, your player-data is loaded during OnPlayerConnect.
Players connect only once to your server and data should only be loaded once for the entire duration your player is connected.
If you use a DeathMatch script, players will spawn very often if they die alot, or in other scripts, when they change classes.
No need to keep reloading the same data over and over again.
Re: OnPlayerSpaw -
BoU3A - 11.12.2014
but when i put my data in OnPlayerConnect Nothing load its spawn on the air