Checkpoints.
#1

pawn Код:
new VCheck;

public OnFilterScriptInit()
{
    VCheck = CreateDynamicCP(1498.7206,-1580.5266,13.5498,2.6653,0,0,0,0);
    return 1;
}

public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
    if(checkpointid == AdminBuilding)
    {
        GangZoneFlashForAll(VGang, COLOR_RED);
    }
    return 1;
}
How to check if a player it's staying in Checkpoint, for 30 seconds?
Reply
#2

Create a timer in onplayerenterdynamic cp
If you have any callback to check if player leaves the checkpoint, kill the timer there. Within these gap if he stayed in the checkpoint for 30 seconds which you check in the timer, continue your functions
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)