[Ajuda] comando errado
#2

Tente:
pawn Код:
if(!strcmp(cmdtext,"/farol",true))
{
    new mot, lu, alar, por, cap, porma, ob;
    new carro = GetPlayerVehicleID(playerid);
    if(GetPVarInt(playerid, "farol"))
    {
        {
            if(luz[playerid] == 1)
            {
                GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob);
                SetVehicleParamsEx(carro, mot, VEHICLE_PARAMS_OFF, alar, por, cap, porma, ob);
                luz[playerid] = 0;
                SendClientMessage(playerid, 0xFFFFFFAA, "Farol {E31919}Desligado!");
                }
            }
        }
    }
    SetPVarInt(playerid, "farol", false);
    {
        if(luz[playerid] == 0)
        {
            GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob);
            SetVehicleParamsEx(carro, mot, VEHICLE_PARAMS_ON, alar, por, cap, porma, ob);
            luz[playerid] = 1;
            SendClientMessage(playerid, 0xFFFFFFAA, "Farol {2F991A}Ligado!");
        }
    }
    return 1;
}
Reply


Messages In This Thread
[Ajuda] comando errado - by Senhor_Azul - 04.05.2012, 18:37
Re: [Ajuda] comando errado - by Kuddy - 04.05.2012, 18:39
Re: [Ajuda] comando errado - by Senhor_Azul - 04.05.2012, 18:41
Re: [Ajuda] comando errado - by ViniBorn - 04.05.2012, 18:43
Re: [Ajuda] comando errado - by Senhor_Azul - 04.05.2012, 18:44

Forum Jump:


Users browsing this thread: 1 Guest(s)