public OnPlayerRequestClass(playerid,classid){ if(pinfo[playerid][loggedin] == 1) // Checks if the player is registered { SpawnPlayer(playerid); return 1; } return 1;}