Auto spawn
#1

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

https://sampwiki.blast.hk/wiki/SetSpawnInfo and https://sampwiki.blast.hk/wiki/SpawnPlayer
Reply
#3

under OnPlayerRequestClass use SetSpawnInfo and SpawnPlayer, then return 0;
Reply
#4

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?
Reply
#5

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 ], ... );
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)