[Ajuda] CheckPoint
#3

Bom, fiz assim atй agora, oque estб errado, oque estб certo, oque tenho que mudar galera?
PHP код:
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
              
SetTimerEx("NoCP"500true"i"playerid);
       }
}
forward NoCP(playerid);
public 
NoCP(playerid)
{
       if(
IsPlayerInRangeOfPoint(playerid3, -2042.54,-72.55,34.89))//Se o jogador ta no primeiro CP:
       
{
              
SetPlayerRaceCheckpoint(playerid0, -2003.62, -40.1534.88, -2006.3725.1532.543);//mostrar o segundo CP, apontando para o ъltimo
       
}
       if(
IsPlayerInRangeOfPoint(playerid3, -2003.62, -40.1534.88))//se o jogador ta no segundo CP:
       
{
              
SetPlayerCheckpoint(playerid, -2048.89, -89.0134.893);//Cria o ъltimo CheckPoint
       
}
       if(
IsPlayerInRangeOfPoint(playerid3, -2048.89, -89.0134.89)//Se o jogador ta no ъltimo CP:
       
{
              
SendClientMessage(playerid, -1"Vocк chegou ao seu destino");//Envia uma msg pra dizer que acabou
              
DisablePlayerCheckpoint(playerid);//Desabilita o CP
       
}
       return 
1;

Bom, foi isso que eu fiz, acho que nгo devo utilizar o SetTimerEx ali, mas nгo consegui pensar em outro modo, alguйm tem ideia de como fazer?, Se puder ajudar fico imensamente grato.

Abraзos.
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: 7 Guest(s)