[AJUDA] Posto de Gasolina
#5

Larceny so pode me explica sobre esse
Код:
                    //abastece aqui
Код:
                //abastece aqui ''outros postos''
e repare meu gm quaze nada e feito no /abastecer
Код:
    if(strcmp(cmd, "/abastecer", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(IsAtGasStation(playerid))
            {
                GameTextForPlayer(playerid,"~w~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ reabastecendo o veўculo ~n~por favor espere",2000,3);
                SetTimer("Fillup",RefuelWait,0);
                Refueling[playerid] = 1;
                TogglePlayerControllable(playerid, 0);
            }
            else
            {
                SendClientMessage(playerid,COLOR_GREY,"   Vocк nгo estб em um posto !");
            }
        }
        return 1;
    }
ele e basicamente cria no IsAtGasStation
Код:
public IsAtGasStation(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        if(PlayerToPoint(10.0,playerid,1004.0070,-939.3102,42.1797) || PlayerToPoint(10.0,playerid,1944.3260,-1772.9254,13.3906))
        {//LS
            return 1;
        }
        else if(PlayerToPoint(10.0,playerid,-90.5515,-1169.4578,2.4079) || PlayerToPoint(10.0,playerid,-1609.7958,-2718.2048,48.5391))
        {//LS
            return 1;
        }
        if(PlayerInfo[playerid][pMembro] == 1||PlayerInfo[playerid][pLider] == 1 || PlayerInfo[playerid][pMembro] == 2||PlayerInfo[playerid][pLider] == 2 || PlayerInfo[playerid][pMembro] == 3||PlayerInfo[playerid][pLider] == 3 || PlayerInfo[playerid][pMembro] == 21||PlayerInfo[playerid][pLider] == 21)
        {
        return 1;
        }
        else if(PlayerToPoint(10.0,playerid,1592.7389,-1613.9843,13.3828) || PlayerToPoint(10.0,playerid,1603.5442,-1613.4485,13.5036))
        {//LS PM
            return 1;
        }
        else if(PlayerToPoint(10.0,playerid,-2243.9629,-2560.6477,31.8841) || PlayerToPoint(10.0,playerid,-1676.6323,414.0262,6.9484))
        {//Between LS and SF
            return 1;
        }
        else if(PlayerToPoint(10.0,playerid,2202.2349,2474.3494,10.5258) || PlayerToPoint(10.0,playerid,614.9333,1689.7418,6.6968))
        {//LV
            return 1;
        }
        else if(PlayerToPoint(10.0,playerid,-1328.8250,2677.2173,49.7665) || PlayerToPoint(10.0,playerid,70.3882,1218.6783,18.5165))
        {//LV
            return 1;
        }
        else if(PlayerToPoint(10.0,playerid,2113.7390,920.1079,10.5255) || PlayerToPoint(10.0,playerid,-1327.7218,2678.8723,50.0625))
        {//LV
            return 1;
        }
    }
    return 0;
}
Reply


Messages In This Thread
[AJUDA] Posto de Gasolina - by Serial_Killer - 13.10.2010, 04:02
Re: [AJUDA] Posto de Gasolina - by Kel_K.N.E. - 13.10.2010, 04:19
Re: [AJUDA] Posto de Gasolina - by SlashPT - 13.10.2010, 09:57
Re: [AJUDA] Posto de Gasolina - by Shelby - 13.10.2010, 09:57
Respuesta: [AJUDA] Posto de Gasolina - by Serial_Killer - 13.10.2010, 10:26
Re: [AJUDA] Posto de Gasolina - by Shelby - 13.10.2010, 10:49

Forum Jump:


Users browsing this thread: 1 Guest(s)