SA-MP Forums Archive
[AJUDA] Com o comando /abastecer - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] Com o comando /abastecer (/showthread.php?tid=340196)



[AJUDA] Com o comando /abastecer - nauanvieira - 06.05.2012

quando eu to /abastecer ou Aperto A Letra 'H' Para abastecer as letras do GTA Buga e para desbugar so Relogando alguem poderia mim ajudar com o comando. Eu irei posta as SS e O Comando :



pawn Код:
if(strcmp(cmd, "/abastecer", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
        if(!IsPlayerInAnyVehicle(playerid))
                return SendClientMessage(playerid,COLOR_RED,"   Vocк nгo estб em um veнculo!");

        new vid = GetPlayerVehicleID(playerid);
        if(Gas[vid] >= 100)
                return SendClientMessage(playerid,COLOR_RED,"POSTO: O tanque jб estб cheio.");

            if(IsAtGasStation(playerid))
            {
                GameTextForPlayer(playerid,"~g~P~y~B~b~G~n~~w~Reabastecendo, Aguarde...~",3000,3);
                SetTimer("Fillup",RefuelWait,0);
                Controle(playerid, 0);
                Refueling[playerid] = 1;
            }
            else
            {
                SendClientMessage(playerid,COLOR_GREY,"   Vocк nгo estб em um Posto de Gasolina");
            }
        }
        return true;
    }



Re: [AJUDA] Com o comando /abastecer - SPOT_M16 - 06.05.2012

Acho q aitingiu o limite de text tenta substituir

Код:
GameTextForPlayer(playerid,"~g~P~y~B~b~G~n~~w~Reabastecendo, Aguarde...~",3000,3);
por isso

Код:
SendClientMessage(playerid,0xFFFFFFFF,"Reabastecendo, Aguarde");



Re: [AJUDA] Com o comando /abastecer - nauanvieira - 06.05.2012

foi brigado fucionou numa Boa ...