Код:
public OnPlayerRequestClass(playerid, classid)
{
if(LoggedIn[playerid] == 0)
{
return 0;
}
return 1;
}
You could make a variable to check if the player has entered a correct password and logged in. By having that, you can restrict players from spawning if they did not login.