25.05.2015, 11:32
Quote:
Hi Maro06,
I would take your code under OnPlayerRequestClass and create a new public like so: Код:
forward OnPlayerConnected(playerid); public OnPlayerConnected(playerid) { SetSpawnInfo(playerid, TEAM_NONE, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); SpawnPlayer(playerid); return 1; } Код:
OnPlayerConnect(playerid) { SetTimerEx("OnPlayerConnected", 5000, false, "i", playerid) // All your other OnPlayerConnect code. return 1; } Give this a try and let me know if you run into any errors - there may be a better way of doing this, but I was having the same problem and searched and searched for solutions and this is the only working method I could find. |