[Ajuda] Sistema Avaria
#10

E eu tenho funзгo de desligar veja

Код:
if (strcmp("/ligarmotor", cmdtext, true, 10) == 0)
    {
        new mot, lu, alar, por, cap, porma, ob;
        new carro = GetPlayerVehicleID(playerid);
        if(carro != INVALID_VEHICLE_ID)
        {
                if(motor[playerid] == 0)
                {
                    GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob);
                    SetVehicleParamsEx(carro, VEHICLE_PARAMS_ON, lu, alar, por, cap, porma, ob);
                    motor[playerid] = 1;
                    SendClientMessage(playerid, 0xFFFFFFAA, "Motor {2F991A}Ligado. {E31919}Para desligar usa /desligarmotor");
                }
            }
    }
    if (strcmp("/desligarmotor", cmdtext, true, 10) == 0)
    {
        new mot, lu, alar, por, cap, porma, ob;
        new carro = GetPlayerVehicleID(playerid);
        if(carro != INVALID_VEHICLE_ID)
            {
                if(motor[playerid] == 1)
                {
                    GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob);
                    SetVehicleParamsEx(carro, VEHICLE_PARAMS_OFF, lu, alar, por, cap, porma, ob);
                    motor[playerid] = 0;
                    SendClientMessage(playerid, 0xFFFFFFAA, "Veiculo {E31919}Desligado. {2F991A}Para ligar usa /desligarmotor");
                }
            }
    }
Reply


Messages In This Thread
[Ajuda] Sistema Avaria - by [Dk]TuReTOo - 10.02.2011, 22:42
Re: [Ajuda] Sistema Avaria - by Macintosh - 11.02.2011, 16:06
Re: [Ajuda] Sistema Avaria - by TiagoPS - 11.02.2011, 16:11
Re: [Ajuda] Sistema Avaria - by Macintosh - 11.02.2011, 16:54
Re: [Ajuda] Sistema Avaria - by [Dk]TuReTOo - 11.02.2011, 18:02
Re: [Ajuda] Sistema Avaria - by leandro123456 - 11.02.2011, 18:34
Re: [Ajuda] Sistema Avaria - by zSuYaNw - 11.02.2011, 18:56
Re: [Ajuda] Sistema Avaria - by [Dk]TuReTOo - 11.02.2011, 19:14
Re: [Ajuda] Sistema Avaria - by Macintosh - 11.02.2011, 20:12
Re: [Ajuda] Sistema Avaria - by [Dk]TuReTOo - 11.02.2011, 20:20

Forum Jump:


Users browsing this thread: 2 Guest(s)