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



Auto spawn - edzis84 - 05.02.2013

Hey, how can i make that player spawns automaticly after login without pressing "Spawn button"


Re: Auto spawn - ReVo_ - 05.02.2013

https://sampwiki.blast.hk/wiki/SetSpawnInfo and https://sampwiki.blast.hk/wiki/SpawnPlayer


Re: Auto spawn - LarzI - 05.02.2013

under OnPlayerRequestClass use SetSpawnInfo and SpawnPlayer, then return 0;


AW: Auto spawn - edzis84 - 05.02.2013

Thanks, this worked but there i have to type in skin ID for spawning. but how to make that skin loads from my ini file?


Re: Auto spawn - LarzI - 05.02.2013

In SetPlayerSpawnInfo there's a parameter where you choose the skinid. Simply put the variable holding the information from the ini to set the skin ID.
Example:
pawn Код:
SetPlayerSpawnInfo( playerid, TEAM, PlayerInfo[ playerid ][ pSkin ], ... );