Posts: 37
Threads: 14
Joined: Apr 2010
Reputation:
0
i want to script that player how connect the server is freezed but onplayerconnect TogglePlayerControllable(playerid, false);
doesn t work and the player can play before he is logged in
thanks for help i know my english isn t the best
Posts: 899
Threads: 197
Joined: Feb 2009
Reputation:
0
what login system do u use?
Posts: 37
Threads: 14
Joined: Apr 2010
Reputation:
0
i use tha login system from a filterscript:Seifadmin
there is also a register/login system
Posts: 899
Threads: 197
Joined: Feb 2009
Reputation:
0
search for
public OnPlayerRequestSpawn(playerid)
{
in there write
if(AccountInfo[playerid][Logged] == 0) return SendClientMessage(playerid, RED, "Error: Must be logged in to spawn!");
}
i think it should work
Posts: 37
Threads: 14
Joined: Apr 2010
Reputation:
0
thx it works but i want to freeze them so i have done that:
public OnPlayerRequestSpawn(playerid)
{
if(AccountInfo[playerid][Logged] == 0) return SendClientMessage(playerid, RED, "Error: Must be logged in to spawn!");
TogglePlayerControllable(playerid, false);//but he isnt freezed that is a problem
return 1;
}