public OnPlayerSpawn(playerid){ if(!Logged[playerid]) //Your variable to see if the player is logged. { Kick(playerid); }}