SA-MP Forums Archive
Player freezes for no reason - 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: Player freezes for no reason (/showthread.php?tid=440097)



Player freezes for no reason - NicholasA - 28.05.2013

Код:
public OnPlayerConnect(playerid)
{
    if(hasAssassin == false) // If there is no Assassin on the server he becomes it
	{
	    new string[64];
	    SetSpawnInfo(playerid, 0, 285, 1525.8599,938.2324,10.8203, 1,  34, 999999, 4, 1, 0, 0);
	    format(string,sizeof(string),"The assassin has joined with the id: %d",playerid);
	    print(string);
	    SpawnPlayer(playerid);
	}
	else // If there is an assassin on the server he becomes guard
	{
	    new string[64];
	    format(string,sizeof(string),"A guard has joined with the id: %d",playerid);
	    print(string);
	    SetSpawnInfo(playerid, 0, 285, 1525.8599,938.2324,10.8203, 1,  34, 999999, 4, 1, 0, 0);
	    SpawnPlayer(playerid);
	}
	return 1;
}
Why am i unable to move?
I tied toggleplayercontrollable but that didnt work. Thanks


Re: Player freezes for no reason - Finn707 - 28.05.2013

Err, you could try moving the code from OnPlayerConnect to OnPlayerRequestClass?


Re: Player freezes for no reason - NicholasA - 28.05.2013

Quote:
Originally Posted by Finn707
Посмотреть сообщение
Err, you could try moving the code from OnPlayerConnect to OnPlayerRequestClass?
thanks