Kick a player for pausing
#2

you can use an external function ( https://sampforum.blast.hk/showthread.php?tid=245738 )

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;
}
Reply


Messages In This Thread
Kick a player for pausing - by Kudoz - 26.07.2013, 17:57
Re: Kick a player for pausing - by TH3_R3D™ - 26.07.2013, 19:42
Re: Kick a player for pausing - by Kudoz - 27.07.2013, 17:16

Forum Jump:


Users browsing this thread: 1 Guest(s)