[Ajuda] Problemas Com GPS
#1

O Checkpoint nгo some Quando Chega No Local Desejado.

pawn Код:
if(dialogid == DIALOG_GPS)
    {
        if(response == 0)
        {
            TextDrawHideForPlayer(playerid, GPSText[playerid]);
            DisablePlayerCheckpoint(playerid);
            SendClientMessage(playerid, COLOR_LIGHTRED, "A sua sessгo de GPS foi encerrada!");
            return 1;
        }
        if(response >= 1)
        {
            if(listitem == 0)
            {
                ShowPlayerDialog(playerid, DIALOG_GPS+1, DIALOG_STYLE_LIST, "{FFFFFF}GPS:", "Departamento da Polнcia\nPrefeitura\nLoterica\nAluguel de Carros\nAluguel de Aviхes\nAeroporto de Los Santos\nHospital\nLoja de Armas [1]\nLoja de Armas [2]\nPrйdio\nRespawn Civil\nEstacionamento VIP", "Marcar", "Voltar");
            }
            if(listitem == 1)
            {
                ShowPlayerDialog(playerid, DIALOG_GPS+2, DIALOG_STYLE_LIST, "{FFFFFF}GPS:", "01. Polнcia Militar\n02. B.O.P.E\n03. Exйrcito\n04. Mйdicos\n05. Mбfia Yakuza\n06. ASFARC\n07. Prefeitura\n\
                08. Hitmans\n09. Repуrteres\n10. Taxistas\n11. Mбfia Cosa Nostra\n12. Groove Street\n13. Ballas\n14. Vagos\n15. Aztecas\n16. Polнcia Federal\n\
                17. Comando Vermelho\n18. PCC\n19. The Killers\n20. Guerrilheiros Israelitas"
, "Marcar", "Voltar");
            }
            if(listitem == 2)
            {
                ShowPlayerDialog(playerid, DIALOG_GPS+3, DIALOG_STYLE_LIST, "{FFFFFF}GPS:", "Casarгo Abandonado - Gangues\nArmazйm - Gangues\nPargue Gleen - Gangues\nSkate - Gangues\nShopping - Mбfia", "Marcar", "Voltar");
            }
            if(listitem == 3)
            {
                ShowPlayerDialog(playerid, DIALOG_GPS+4, DIALOG_STYLE_LIST, "{FFFFFF}GPS:", "BurgerShot\nPizzaria", "Marcar", "Voltar");
            }
            if(listitem == 4)
            {
                if(PlayerInfo[playerid][pPhousekey] != 255)
                {
                    SetPlayerCheckpoint(playerid,HouseInfo[PlayerInfo[playerid][pPhousekey]][hEntrancex], HouseInfo[PlayerInfo[playerid][pPhousekey]][hEntrancey], HouseInfo[PlayerInfo[playerid][pPhousekey]][hEntrancez], 8.0);
                    gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
                    TextDrawSetString(GPSText[playerid],""TEXTOGPS"Sua casa");
                    TextDrawShowForPlayer(playerid, GPSText[playerid]);
                }
                else
                {
                    SendClientMessage(playerid,COLOR_GRAD1,"Vocк nгo й proprietбrio de uma casa!");
                    return 1;
                }
            }
            if(listitem == 5)
            {
                ShowPlayerDialog(playerid, DIALOG_GPS+5, DIALOG_STYLE_INPUT, "{FFFFFF}Procura de casa:", "{FFFFFF}Vocк pode ver os id's de casas disponнveis com o comando: {00FF00}/casas\n{FFFFFF}Para procurar uma casa livre insira o {00FF00}ID{FFFFFF} dela abaixo", "Marcar", "Voltar");
            }
        }
        return 1;
    }
    if(dialogid == DIALOG_GPS+1)
    {
        if(response == 0)
        {
            DialogGPS(playerid);
            return 1;
        }
        if(response >= 1)
        {
            if(listitem == 0)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}Departamento da Polнcia");
                SetPlayerCheckpoint(playerid,1536.0808,-1675.4663,13.3828,8.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Departamento da Policia");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            if(listitem == 1)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}Prefeitura");
                SetPlayerCheckpoint(playerid,1490.0834,-1737.7325,13.5469,8.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Prefeitura");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            if(listitem == 2)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}Loterica");
                SetPlayerCheckpoint(playerid,477.2122,-1496.1895,20.4523,92.1972);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Loterica");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            if(listitem == 3)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}Aluguel de Carros");
                SetPlayerCheckpoint(playerid,558.4080,-1259.1047,17.2422,8.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Aluguel de Carros");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            if(listitem == 4)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}Aluguel de Aviхes");
                SetPlayerCheckpoint(playerid,2037.1667,-2610.6360,13.5469,8.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Aluguel de Aeronaves");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            if(listitem == 5)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}Aeroporto de Los Santos");
                SetPlayerCheckpoint(playerid,1961.2648,-2188.3708,13.5469,8.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Aeroporto de LS");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            if(listitem == 6)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}Hospital");
                SetPlayerCheckpoint(playerid,1178.3634,-1323.6154,14.1164,8.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Hospital");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            if(listitem == 7)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}Loja de Armas [1]");
                SetPlayerCheckpoint(playerid,1791.2120,-1164.6317,23.8281,8.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Loja de Armas 1");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            if(listitem == 8)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}Loja de Armas [2]");
                SetPlayerCheckpoint(playerid,1378.4519,-1752.9847,14.1406,8.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Loja de Armas 2");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            if(listitem == 9)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}Prйdio");
                SetPlayerCheckpoint(playerid,1591.5201,-1315.6573,17.4914,8.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Predio");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            if(listitem == 10)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}Respawn Civil");
                SetPlayerCheckpoint(playerid,1227.2380,-1830.3945,13.4008,8.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Respawn Civil");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            if(listitem == 11)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}Estacionamento VIP");
                SetPlayerCheckpoint(playerid,1639.6327,-1145.4393,23.9063,8.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Estacionamento");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
             if(listitem == 12)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}Balada Tableau");
                SetPlayerCheckpoint(playerid,548.7286,-1506.2073,14.5412,8.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Balada Tableau");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            TextDrawShowForPlayer(playerid, GPSText[playerid]);
        }
        return 1;
    }
        if(dialogid == DIALOG_GPS+2)
    {
        if(response == 0)
        {
            DialogGPS(playerid);
            return 1;
        }
        if(response >= 1)
        {
            if(listitem == 0)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}Polнcia Militar");
                SetPlayerCheckpoint(playerid,1536.0808,-1675.4663,13.3828,8.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Polнcia Militar");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            if(listitem == 1)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}B.O.P.E");
                SetPlayerCheckpoint(playerid,328.7618,-1511.8379,36.0391,10.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"B.O.P.E");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            if(listitem == 2)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}Exйrcito");
                SetPlayerCheckpoint(playerid,-1531.4238,481.8620,7.1875,10.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Exйrcito");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            if(listitem == 3)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}Mйdicos");
                SetPlayerCheckpoint(playerid,1178.3634,-1323.6154,14.1164,10.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Mйdicos");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            if(listitem == 4)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}Mбfia Yakuza");
                SetPlayerCheckpoint(playerid,664.3810,-1309.7341,13.4609,10.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Mбfia Yakuza");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            if(listitem == 5)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}ASFARC");
                SetPlayerCheckpoint(playerid,419.5201,2532.4229,16.5923,8.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"ASFARC");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            if(listitem == 6)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}Prefeitura");
                SetPlayerCheckpoint(playerid,1993.0703,-1455.1405,13.3974,8.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Prefeitura");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            if(listitem == 7)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}Hitmans");
                SetPlayerCheckpoint(playerid,1791.2120,-1164.6317,23.8281,8.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Hitmans");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            if(listitem == 8)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}Repуrteres");
                SetPlayerCheckpoint(playerid,778.7437,-1327.8564,13.5469,8.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Repуrteres");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            if(listitem == 9)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}Taxistas");
                SetPlayerCheckpoint(playerid,1045.7715,-1458.5562,13.3355,8.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Taxistas");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            if(listitem == 10)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}Mбfia Cosa Nostra");
                SetPlayerCheckpoint(playerid,1303.5779,-800.7894,84.1406,8.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Mбfia Cosa Nostra");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            if(listitem == 11)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}Groove Street");
                SetPlayerCheckpoint(playerid,2485.6274,-1679.3392,13.3358,8.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Groove Street");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
             if(listitem == 12)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}Ballas");
                SetPlayerCheckpoint(playerid,2435.9500,-1229.6500,25.2153,8.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Ballas");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            if(listitem == 13)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}Vagos");
                SetPlayerCheckpoint(playerid,2811.4102,-1179.6122,25.2905,8.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Vagos");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            if(listitem == 14)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}Aztecas");
                SetPlayerCheckpoint(playerid,1691.5208,-2112.4475,13.4000,8.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Aztecas");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            if(listitem == 15)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}Polнcia Federal");
                SetPlayerCheckpoint(playerid,914.9964,-1003.3567,38.0049,8.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Polнcia Federal");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            if(listitem == 16)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}Comando Vermelho");
                SetPlayerCheckpoint(playerid,1013.1464,-1098.5940,23.8349,8.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Comando Vermelho");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            if(listitem == 17)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}PCC");
                SetPlayerCheckpoint(playerid,1335.9287,-869.4292,39.4411,8.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"PCC");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            if(listitem == 18)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}The Killers");
                SetPlayerCheckpoint(playerid,-539.7836,-505.5912,25.5234,8.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"The Killers");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            if(listitem == 19)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}Guerrilheiros Israelitas");
                SetPlayerCheckpoint(playerid,-56.1933,83.7802,3.1172,8.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Guerrilheiros Israelitas");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            if(listitem == 20)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}Ballas");
                SetPlayerCheckpoint(playerid,2435.9500,-1229.6500,25.2153,8.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Ballas");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            TextDrawShowForPlayer(playerid, GPSText[playerid]);
        }
        return 1;
    }
            if(dialogid == DIALOG_GPS+3)
    {
        if(response == 0)
        {
            DialogGPS(playerid);
            return 1;
        }
        if(response >= 1)
        {
            if(listitem == 0)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}Casarгo Abandonado");
                SetPlayerCheckpoint(playerid,1422.7941,-1897.3380,13.4438,8.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Casarгo Abandonado - Gangues");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            if(listitem == 1)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}Armazйm");
                SetPlayerCheckpoint(playerid,1765.8049,-1955.9240,13.2675,8.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Armazйm - Gangues");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            if(listitem == 2)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}Parque Gleen");
                SetPlayerCheckpoint(playerid,1885.2130,-1208.7865,18.5503,8.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Pargue Gleen - Gangues");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            if(listitem == 3)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}Skate");
                SetPlayerCheckpoint(playerid,1871.4480,-1382.0980,13.2474,8.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Skate - Gangues");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            if(listitem == 4)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}Shopping");
                SetPlayerCheckpoint(playerid,1126.0383,-1467.2534,15.4757,8.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Shopping - Mбfia");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            TextDrawShowForPlayer(playerid, GPSText[playerid]);
        }
        return 1;
    }
    if(dialogid == DIALOG_GPS+4)
    {
        if(response == 0)
        {
            DialogGPS(playerid);
            return 1;
        }
        if(response >= 1)
        {
            if(listitem == 0)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}BurgerShot");
                SetPlayerCheckpoint(playerid,1215.9213,-915.8223,42.9189,8.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"BurgerShot");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            if(listitem == 1)
            {
                SendClientMessage(playerid, BRANCO, "Vocк marcou o seu GPS para: {4CC2FC}Pizzaria");
                SetPlayerCheckpoint(playerid,2092.9849,-1807.1635,13.5492,8.0);
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Pizzaria");
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            TextDrawShowForPlayer(playerid, GPSText[playerid]);
        }
        return 1;
    }
    if(dialogid == DIALOG_GPS+5)
    {
        if(response == 0)
        {
            DialogGPS(playerid);
            return 1;
        }
        if(response >= 1)
        {
            if(strval(inputtext) < sizeof(HouseInfo))
            {
                TextDrawSetString(GPSText[playerid],""TEXTOGPS"Procura de casa");
                TextDrawShowForPlayer(playerid, GPSText[playerid]);
                SetPlayerCheckpoint(playerid,HouseInfo[strval(inputtext)][hEntrancex], HouseInfo[strval(inputtext)][hEntrancey], HouseInfo[strval(inputtext)][hEntrancez], 8.0);
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
            }
            else
            {
                SendClientMessage(playerid,COLOR_GRAD1, "ID de casa invбlido, use /casas para ver as casas disponнveis!");
                ShowPlayerDialog(playerid, DIALOG_GPS+5, DIALOG_STYLE_INPUT, "{FFFFFF}Procura de casa:", "{FFFFFF}Vocк pode ver os id's de casas disponнveis com o comando: {00FF00}/casas\n{FFFFFF}Para procurar uma casa livre insira o {00FF00}ID{FFFFFF} dela abaixo", "Marcar", "Voltar");
            }
        }
        return 1;
    }
Reply
#2

Poste sua OnPlayerEnterCheckpoint
Reply
#3

Manda a callback

Код:
OnPlayerEnterCheckpoint
Pode ser ela, que nгo tem DisableCheckpoint...
Reply
#4

DisablePlayerCheckpoint...
Reply
#5

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    new string[256];
    new name[MAX_PLAYER_NAME];
    if(TaxiCallTime[playerid] > 0 && TaxiAccepted[playerid] < 999)
    {
        TaxiAccepted[playerid] = 999;
        GameTextForPlayer(playerid, "~w~Chegou em seu Destino", 5000, 1);
        TaxiCallTime[playerid] = 0;
        DisablePlayerCheckpoint(playerid);
    }
    else if(BusCallTime[playerid] > 0 && BusAccepted[playerid] < 999)
    {
        BusAccepted[playerid] = 999;
        GameTextForPlayer(playerid, "~w~Chegou em seu Destino", 5000, 1);
        BusCallTime[playerid] = 0;
        DisablePlayerCheckpoint(playerid);
    }
Reply
#6

Tente:
PHP код:
public OnPlayerEnterCheckpoint(playerid)
{
    new 
string[256];
    new 
name[MAX_PLAYER_NAME];
    if(
TaxiCallTime[playerid] > && TaxiAccepted[playerid] < 999)
    {
        
TaxiAccepted[playerid] = 999;
        
GameTextForPlayer(playerid"~w~Chegou em seu Destino"50001);
        
TaxiCallTime[playerid] = 0;
        
DisablePlayerCheckpoint(playerid);
    }
    else
    if(
BusCallTime[playerid] > && BusAccepted[playerid] < 999)
    {
        
BusAccepted[playerid] = 999;
        
GameTextForPlayer(playerid"~w~Chegou em seu Destino"50001);
        
BusCallTime[playerid] = 0;
        
DisablePlayerCheckpoint(playerid);
    }
    
DisablePlayerCheckpoint(playerid);

Reply
#7

Nгo resultou
Reply
#8

tenta

Код:
public OnPlayerEnterCheckpoint(playerid)
{
	new string[256];
	new name[MAX_PLAYER_NAME];
	if(TaxiCallTime[playerid] > 0 && TaxiAccepted[playerid] < 999)
	{
	    TaxiAccepted[playerid] = 999;
		GameTextForPlayer(playerid, "~w~Chegou em seu Destino", 5000, 1);
		TaxiCallTime[playerid] = 0;
		DisablePlayerCheckpoint(playerid);
	}
	else if(BusCallTime[playerid] > 0 && BusAccepted[playerid] < 999)
	{
	    BusAccepted[playerid] = 999;
		GameTextForPlayer(playerid, "~w~Chegou em seu Destino", 5000, 1);
		BusCallTime[playerid] = 0;
		DisablePlayerCheckpoint(playerid);
	}
	return 1;
}
Reply
#9

Acho que o problema o 999 ta somando 999 checkpoints soma o total de checkpoint e coloca no codigo.
Reply
#10

Crasha Quando Compila :X
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)