[Ajuda] CheckPoint
#5

Como o 99fe3rnando disse, eu faria usando a public OnPlayerEnterRaceCheckpoint.
Faria desta maneira:
PHP код:
new PlayerInCheck[MAX_PLAYERS];
if(
dialogid==xXx

       if(
response
       { 
              
SetPlayerRaceCheckpoint(playerid0, -2042.54, -72.5534.89, -2042.54,-72.55,34.893);//Primeiro CP apontado para o segundo CP 
              
PlayerInCheck[playerid] = 1;
       } 

public 
OnPlayerEnterRaceCheckpoint(playerid)
{
     if(
PlayerInCheck[playerid] == 1)
     {
       
//Funзгo para o prуx. checkpoint.
       
PlayerInCheck[playerid]++; //Prуx. Checkpoint.
     
}
     if(
PlayerInCheck[playerid] == 2)
     {
       
//Funзгo para o prуx. Checkpoint.
       
PlayerInCheck[playerid]++; //Prуx. Checkpoint.
     
}
     return 
1;

Reply


Messages In This Thread
CheckPoint - by matheusspohr - 02.10.2015, 15:35
Re: CheckPoint - by garotin - 02.10.2015, 17:16
Re: CheckPoint - by matheusspohr - 03.10.2015, 15:36
Re: CheckPoint - by 99fe3rnando - 03.10.2015, 18:07
Re: CheckPoint - by #Luca[S]. - 04.10.2015, 04:04
Re: CheckPoint - by matheusspohr - 04.10.2015, 20:52
Re: CheckPoint - by #Luca[S]. - 04.10.2015, 21:39
Re: CheckPoint - by matheusspohr - 04.10.2015, 23:24

Forum Jump:


Users browsing this thread: 5 Guest(s)