Help me in Float Checkpoints
#6

So you can use like this :
PHP код:
if(IsTruckerCar(vehicleid)) 

    
CP[playerid] = CHECKPOINT_JOB1
    new 
rand random(sizeof(Kidnap));
    
Checkpoint[playerid] = rand;
    
SetPlayerCheckpoint(playerid,Kidnap[rand][0],Kidnap[rand][0],Kidnap[rand][0],4); 

And define some codes for each checkpoint like this:
PHP код:
if(CP[playerid] == CHECKPOINT_JOB1

    
GivePlayerMoney(playerid,2000); 
    
PlayerInfo[playerid][pMoney] += 2000
    
CP[playerid] = CHECKPOINT_NONE
    
DisablePlayerCheckpoint(playerid); 
    return 
1

It would work.
Any questions?
Reply


Messages In This Thread
Help me in Float Checkpoints - by astanalol - 24.04.2015, 12:17
Re: Help me in Float Checkpoints - by BroZeus - 24.04.2015, 12:23
Re: Help me in Float Checkpoints - by astanalol - 24.04.2015, 12:25
Re: Help me in Float Checkpoints - by Alpay0098 - 24.04.2015, 12:32
Re: Help me in Float Checkpoints - by astanalol - 24.04.2015, 13:00
Re: Help me in Float Checkpoints - by Alpay0098 - 24.04.2015, 13:10
Re: Help me in Float Checkpoints - by Alpay0098 - 24.04.2015, 13:13
Re: Help me in Float Checkpoints - by astanalol - 24.04.2015, 13:57
Re: Help me in Float Checkpoints - by Alpay0098 - 24.04.2015, 14:25
Re: Help me in Float Checkpoints - by astanalol - 24.04.2015, 14:32

Forum Jump:


Users browsing this thread: 1 Guest(s)