26.07.2013, 19:42
you can use an external function ( https://sampforum.blast.hk/showthread.php?tid=245738 )
Example on it:
Example on it:
pawn Код:
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;
}