[Ajuda] /Terminais bugado ajuda!
#1

Ola amigos, Boa noite ou Boa tarde, ou o horario q vc esta vendo.

bom Venho le pedir uma ajuda.

O seguinte.

Digito /terminais ai Aparece isso.

"Vocк comeзou o circuito, siga os checkpoints atй finalizar a viajem
Vocк receberб R$300 a cada checkpoint que passar.
USE: /terminais novamente para parar o serviзo
e Cria um Check point nesse lugar 1369.0927,-1736.0730,13.4787,8.0

Mas ai O Check point Some Alguns segundos depois.

No Caso deveria ser Assim, Digitar o /terminais e aparecer um check point, ai dps vai nele e cria outro e assim vai indo

PHP код:
if (gPlayerTerminal[playerid] != 0)
    {
        if (
IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == 2)
        {
            switch(
gPlayerTerminal[playerid])
            {
                case 
1:
                {
                       
SetPlayerCheckpoint(playerid,1533.1049,-1610.5599,13.47665.0);
                    
SetTimerEx("busstoptimer"10false"i"playerid);
                    
TogglePlayerControllable(playerid0);
                    
SendClientMessage(playeridCOLOR_LIGHTRED"Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 
2:
                {
                    
SetPlayerCheckpoint(playerid,1736.9674,-1601.5439,13.52255.0);
                    
SetTimerEx("busstoptimer"10false"i"playerid);
                    
TogglePlayerControllable(playerid0);
                    
SendClientMessage(playeridCOLOR_LIGHTRED"Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 
3:
                {
                    
SetPlayerCheckpoint(playerid,1818.3682,-1694.8099,13.48315.0);
                    
SetTimerEx("busstoptimer"10false"i"playerid);
                    
TogglePlayerControllable(playerid0);
                    
SendClientMessage(playeridCOLOR_LIGHTRED"Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 
4:
                {
                    
SetPlayerCheckpoint(playerid,1819.0150,-1872.5851,13.50235.0);
                    
SetTimerEx("busstoptimer"10false"i"playerid);
                    
TogglePlayerControllable(playerid0);
                    
SendClientMessage(playeridCOLOR_LIGHTRED"Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 
5:
                {
                    
SetPlayerCheckpoint(playerid,1987.3519,-2169.5242,13.48095.0);
                    
SetTimerEx("busstoptimer"10false"i"playerid);
                    
TogglePlayerControllable(playerid0);
                    
SendClientMessage(playeridCOLOR_LIGHTRED"Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 
6:
                {
                    
SetPlayerCheckpoint(playerid,2274.7886,-2274.3623,13.48375.0);
                    
SetTimerEx("busstoptimer"10false"i"playerid);
                    
TogglePlayerControllable(playerid0);
                    
SendClientMessage(playeridCOLOR_LIGHTRED"Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 
7:
                {
                    
SetPlayerCheckpoint(playerid,1996.1328,-2163.6931,13.48335.0);
                    
SetTimerEx("busstoptimer"10false"i"playerid);
                    
TogglePlayerControllable(playerid0);
                    
SendClientMessage(playeridCOLOR_LIGHTRED"Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 
8:
                {
                    
SetPlayerCheckpoint(playerid,1964.8201,-2077.6494,13.48425.0);
                    
SetTimerEx("busstoptimer"10false"i"playerid);
                    
TogglePlayerControllable(playerid0);
                    
SendClientMessage(playeridCOLOR_LIGHTRED"Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 
9:
                {
                    
SetPlayerCheckpoint(playerid,1825.4634,-1906.8052,13.50445.0);
                    
SetTimerEx("busstoptimer"10false"i"playerid);
                    
TogglePlayerControllable(playerid0);
                    
SendClientMessage(playeridCOLOR_LIGHTRED"Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 
10:
                {
                    
SetPlayerCheckpoint(playerid,1824.8920,-1705.7137,13.48425.0);
                    
SetTimerEx("busstoptimer"10false"i"playerid);
                    
TogglePlayerControllable(playerid0);
                    
SendClientMessage(playeridCOLOR_LIGHTRED"Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 
11:
                {
                    
SetPlayerCheckpoint(playerid,1526.6500,-1612.1188,13.49075.0);
                    
SetTimerEx("busstoptimer"10false"i"playerid);
                    
TogglePlayerControllable(playerid0);
                    
SendClientMessage(playeridCOLOR_LIGHTRED"Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 
12:
                {
                    
SetPlayerCheckpoint(playerid,1373.5723,-1729.5554,13.49525.0);
                    
SetTimerEx("busstoptimer"10false"i"playerid);
                    
TogglePlayerControllable(playerid0);
                    
SendClientMessage(playeridCOLOR_LIGHTRED"Aguarde 10 segundos nesse ponto para esperar passageiros.");
                }
                case 
13:
                {
                    new 
conta gPlayerTerminal[playerid]*300;
                    
format(gstring,sizeof(gstring), "Vocк completou o ROTA do фnibus e ganhou R$%d, use /terminais para iniciar novamente a ROTA."conta);
                    
SendClientMessage(playeridCOLOR_YELLOWgstring);
                    
SendClientMessage(playeridCOLOR_YELLOW"Use /sair para sair do фnibus.");
                    
BusrouteEnd(playerid);
                }
            }
            
gPlayerTerminal[playerid]++;
            
PlayerPlaySound(playerid10560.00.00.0);
            return 
1;
        }
    }
    
DisablePlayerCheckpoint(playerid);
    return 
1;

PHP код:
     if (gPlayerTerminal[playerid] != 0)
        {
            
BusrouteEnd(playerid);
        } 
PHP код:
    if(strcmp(cmd,"/terminais",true)==0)
    {
        if(
IsPlayerConnected(playerid))
        {
            new 
Veh GetPlayerVehicleID(playerid);
            if(!
IsAOniCar(Veh))
            {
                
SendClientMessage(playeridCOLOR_GREY"   Voce nгo estб em um фnibus!");
                return 
1;
            }
            if(
PlayerInfo[playerid][pEmprego] == 9)
            {
                if(
TransportDuty[playerid] > 0)
                {
                    if(
TransportDuty[playerid] == 2)
                    {
                        
BusDrivers -= 1;
                    }
                    
TransportDuty[playerid] = 0;
                    
format(stringsizeof(string), "* Voce estб de folga e recebeu $%d."TransportMoney[playerid]);
                    
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                    
GranaRockstar(playeridTransportMoney[playerid]);
                    
ConsumingMoney[playerid] = 1TransportValue[playerid] = 0TransportMoney[playerid] = 0;
                    return 
1;
                }
                else
                {
                    
BusDrivers += 1TransportDuty[playerid] = 2TransportValue[playerid] = 400;
                       
format(stringsizeof(string), "Motorista de onibus %s estб em serviзo, Corrida: $400 - Vб para o terminal mais prуximo"PlayerName(playerid));
                       
OOCNews(TEAM_GROVE_COLOR,string);
                    
SendClientMessage(playeridCOLOR_RED,"Vocк comeзou o circuito, siga os checkpoints atй finalizar a viajem");
                    
SendClientMessage(playeridCOLOR_RED,"Vocк receberб R$300 a cada checkpoint que passar.");
                    
SendClientMessage(playeridCOLOR_RED,"USE: /terminais novamente para parar o serviзo");
                    
SetPlayerCheckpoint(playerid1369.0927,-1736.0730,13.4787,8.0);
                    
gPlayerTerminal[playerid] = 1;
                }
            }
            else
            {
                
SendClientMessage(playeridCOLOR_GREY,"Vocк nгo й um motorista de фnibus.");
            }
        }
        return 
1;
    } 
Nгo sei oq faze sobre isso
Reply


Messages In This Thread
/Terminais bugado ajuda! - by zGuigui2068 - 10.01.2015, 02:53
Re: /Terminais bugado ajuda! - by Detoria - 10.01.2015, 03:21
Re: /Terminais bugado ajuda! - by zGuigui2068 - 10.01.2015, 03:49
Re: /Terminais bugado ajuda! - by MatheusDalZot - 10.01.2015, 13:08
Re: /Terminais bugado ajuda! - by zGuigui2068 - 10.01.2015, 21:42

Forum Jump:


Users browsing this thread: 2 Guest(s)