Pausing in checkpoint
#1

Because some players abuse pausing in the checkpoint to arm the bomb, i want to find out how to find out if someone does ESC or ALT TAB in the checkpoint?

Maybe someone could help me?
Reply
#2

pawn Код:
public OnPlayerPause(playerid)
{
    Kick(playerid);
}
http://forum.sa-mp.com/showthread.ph...ighlight=Pause
Reply
#3

But it doesnt detects if the player is in checkpoint.
Reply
#4

Nope, but it just detects all the time if a player is pausing.

-J
Reply
#5

pawn Код:
public OnPlayerPause(playerid)
{
    if (IsPlayerInCheckpoint(playerid))
    {
        Kick(playerid);
    }
    return 1;
}
Reply
#6

Quote:
Originally Posted by dr.pepper
Посмотреть сообщение
pawn Код:
public OnPlayerPause(playerid)
{
    if (IsPlayerInCheckpoint(playerid))
    {
        Kick(playerid);
    }
    return 1;
}
i seriously discourage you to use that, set a timer. because onplayerpause can be called when a player lags..
Reply
#7

Cant i use the keystatechange function?
Reply
#8

BUMP
Reply
#9

Quote:
Originally Posted by dr.pepper
Посмотреть сообщение
pawn Код:
public OnPlayerPause(playerid)
{
    if (IsPlayerInCheckpoint(playerid))
    {
        Kick(playerid);
    }
    return 1;
}
aint working
Reply
#10

Quote:
Originally Posted by geerdinho8
Посмотреть сообщение
Cant i use the keystatechange function?
You can't detect ESC with KeyStateChange.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)