SA-MP Forums Archive
Pausing in checkpoint - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Pausing in checkpoint (/showthread.php?tid=268814)



Pausing in checkpoint - geerdinho8 - 13.07.2011

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?


Re: Pausing in checkpoint - Jantjuh - 13.07.2011

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


Re: Pausing in checkpoint - geerdinho8 - 13.07.2011

But it doesnt detects if the player is in checkpoint.


Re: Pausing in checkpoint - Jantjuh - 13.07.2011

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

-J


Re: Pausing in checkpoint - dr.pepper - 13.07.2011

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



Re: Pausing in checkpoint - Donya - 13.07.2011

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..


Re: Pausing in checkpoint - geerdinho8 - 13.07.2011

Cant i use the keystatechange function?


Re: Pausing in checkpoint - geerdinho8 - 14.07.2011

BUMP


Re: Pausing in checkpoint - geerdinho8 - 14.07.2011

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


Re: Pausing in checkpoint - JiHost - 03.01.2012

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