[Duvida] OnPlayerEnterCheckpoint
#1

Estou a criar um sistema de GPS por Dialog ..

pawn Код:
if(dialogid == dialog7)
    {
        if(response)
        {
            if(listitem == 0)
            {
SendClientMessage(playerid, COR_CEU,"Shoping, segue para o ponto vermelho");
SetPlayerCheckpoint(playerid, 2855.4600,2352.7039,10.5913, 3.0);
            }
            if(listitem == 1)
            {
SendClientMessage(playerid, COR_CEU,"Exercito, segue para o ponto vermelho");
SetPlayerCheckpoint(playerid, -1740.1282,29.1154,3.3256, 3.0);
            }
}
return 1;
}
Esta correr tudo perfeito ate ao ponto de OnPlayerEnterCheckpoint!

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
  DisablePlayerCheckpoint(playerid);
  return 1;
}
O problema й que quando chego ao checkpoit da-me um conflito com um FS que tenho de IMPORTAR CARROS e da ao player 2000$ ..

Tem alguma soluзгo ? ou alternativa ?

http://blacka.pastebin.com/hrhH94jJ -- Aqui esta o FS do conflito
Reply
#2

Код:
//Variбvel...
new GPSLigado[MAX_PLAYERS];

//No comando /gps
if(GPSLigado[playerid] == 1){
SendClientMessage(playerid, COLOR_WHITE, "Seu GPS jб estб ativado!");
return 1;
}

if(dialogid == dialog7)
{
if(response)
{
if(listitem == 0)
{
SendClientMessage(playerid, COR_CEU,"Shopping, siga para o ponto vermelho");
SetPlayerCheckpoint(playerid, 2855.4600,2352.7039,10.5913, 3.0);
GPSLigado[playerid] = 1;
}
if(listitem == 1)
{
SendClientMessage(playerid, COR_CEU,"Exйrcito, siga para o ponto vermelho");
SetPlayerCheckpoint(playerid, -1740.1282,29.1154,3.3256, 3.0);
GPSLigado[playerid] = 1;
}
}
return 1;
}

if(IsPlayerInRangeOfPoint(playerid,8,2855.4600,2352.7039,10.5913))// Shopping
{
GPSLigado[playerid] = 0;
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid,COLOR_WHITE," Vocк chegou ao seu destino!");
}
if(IsPlayerInRangeOfPoint(playerid,8,-1740.1282,29.1154,3.3256))// Exйrcito
{
GPSLigado[playerid] = 0;
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid,COLOR_WHITE," Vocк chegou ao seu destino!");
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)