Kick a player for pausing
#1

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
Reply
#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
#3

Ah, thanks! Got it!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)