26.07.2013, 17:57
Hello! I've been looking once again for something that can kick a player who pauses while they're in virtual world 1. How can I do this? Would be nice if someone could explain it to me, so I can learn it
public OnPlayerPause(playerid)//the external function
{
if(GetPlayerVirtualWorld(playerid) == 1)//we are checking if the player in vw = (1)
{//if he's pausing there
Kick(playerid);//kick the player
SendClientMessage(playerid, -1, "You're kicked for pausing ");//now stating him a reason for kicking him
}
return 1;
}