[Ajuda] CheckPoint
#6

Bom, como vocк disse Lucas, fiz isto, mas, estб com problema, Para garantir que havia acabado os CheckPoints, no ъltimo eu adicionei uma mensagem, porйm, quando eu entro no primeiro CheckPoint, ele jб me retorna a mensagem e e nгo mostra mais nenhum CheckPoint.
Cуdigo(apenas uma parte, pois completo й meio grande):
PHP код:
if(dialogid==xXx)
{
    if(
response)
    {
        
SetPlayerRaceCheckpoint(playerid0, -2042.54, -72.5534.89, -2042.54,-72.55,34.893);//Cria o CheckPoint 01
        
APlayerData[playerid][InCP]=1;
    }
}
//public OnPlayerEnterRaceCheckpoint:
    
if(APlayerData[playerid][InCP] == 1)//Verifica se й 1
    
{//Caso for:
        
SetPlayerRaceCheckpoint(playerid0, -2003.62, -40.1534.88, -2006.3725.1532.543);//Cria o CheckPoint 02
        
APlayerData[playerid][InCP]++;//Adiciona 1
    
}
    if(
APlayerData[playerid][InCP]==2)
    {
        
SetPlayerRaceCheckpoint(playerid0, -2006.3725.1532.54, -2085.2632.8134.893);//Cria o CheckPoint 03
        
APlayerData[playerid][InCP]++;
    }
//[...]//(todos os outros)
//ъltimo:
    
if(APlayerData[playerid][InCP]==24)
    {
        
DisablePlayerRaceCheckpoint(playerid);
        
SendClientMessage(playerid, -1"Pronto!");
        
APlayerData[playerid][InCP]=0;
    } 
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: 3 Guest(s)