Posts: 1,679
Threads: 232
Joined: Nov 2009
Reputation:
0
13.09.2016, 00:12
(
Последний раз редактировалось vassilis; 13.09.2016 в 02:36.
)
Is there a way i could avoid class selection buttons? I want to avoid class selection for registered members since they automatically spawn with their saved skin. However, everytime i login i see class selection for some seconds(around 2-3) until i get automatically spawned. How can i avoid class selection buttons? ( < > Spawn)
Posts: 416
Threads: 47
Joined: May 2011
Reputation:
0
SetSpawnInfo
SpawnPlayer
Put these to OnPlayerRequestClass under a variable that detects if the player is a registered member.
Add a variable again to OnPlayerSpawn to check if the player is a registered member and set their skin to their saved skin.
Posts: 1,773
Threads: 47
Joined: Jan 2015
Reputation:
0
Using SetTimerEx, inside the timer's callback, use SpawnPlayer. I guess an interval of 250 should be good for the timer. Or you can also use this as the interval: (GetPlayerPing(playerid) + 150).
Posts: 416
Threads: 47
Joined: May 2011
Reputation:
0
I don't really think there is any other option. Mind sharing the code you tried so I can try to help you out?