OnPlayerEnterCheckpoint job
#5

Maybe this is what you want. First of all make some CMD like eh... /job like this one :

PHP код:
CMD:job(playeridparams[])
{
    
SetPVarInt(playerid"Checkpoint"1);
    
SetPlayerCheckpoint(playerid2066.1118,-1991.9330,13.54693.0);

Then if player enter checkpoint at the coordinate, disable the checkpoint like this :

PHP код:
public OnPlayerEnterCheckpoint(playerid)
{
    if(
GetPVarInt(playerid"Checkpoint"))
    {
                
//Add another function if you want
        
DisablePlayerCheckpoint(playerid);
        
DeletePVar(playerid"Checkpoint");
    }
    return 
1;

Reply


Messages In This Thread
OnPlayerEnterCheckpoint job - by Hunud - 23.02.2017, 10:02
Re: OnPlayerEnterCheckpoint job - by GoldenLion - 23.02.2017, 10:35
Re: OnPlayerEnterCheckpoint job - by Hunud - 23.02.2017, 12:22
Re: OnPlayerEnterCheckpoint job - by GoldenLion - 23.02.2017, 14:45
Re: OnPlayerEnterCheckpoint job - by haikalbintang - 28.02.2017, 16:54

Forum Jump:


Users browsing this thread: 2 Guest(s)