player connect
#1

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
Reply
#2

what login system do u use?
Reply
#3

i use tha login system from a filterscript:Seifadmin

there is also a register/login system
Reply
#4

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

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;
}

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)