[Pedido] Dano mбximo sniper e /motor
#3

/motor:

pawn Код:
new bool:Motor[MAX_PLAYERS];

if (strcmp(cmdtext, "/motor") == 0) //strcmp
{
    new Motor, Luzes, Alarme, Portas, Capo, PortaMalas, Objetivo, Veiculo;
   
    Veiculo = GetPlayerVehicleID(playerid);
    GetVehicleParamsEx(Veiculo, Motor, Luzes, Alarme, Portas, Capo, PortaMalas, Objetivo);
   
    if (Motor[playerid] == true)
    {
        SetVehicleParamsEx(Veiculo, 0, 0, Alarme, Portas, Capo, PortaMalas, Objetivo);
        Motor[playerid] = false;
    }
    else
    {
        SetVehicleParamsEx(vehicleid, 1, 1, 0, Portas, Capo, PortaMalas, Objetivo);
        Motor[playerid] = true;
    }
   
    return 1;
}

COMMAND:motor(playerid, params[])//zcmd
{
    new Motor, Luzes, Alarme, Portas, Capo, PortaMalas, Objetivo, Veiculo;
   
    Veiculo = GetPlayerVehicleID(playerid);
    GetVehicleParamsEx(Veiculo, Motor, Luzes, Alarme, Portas, Capo, PortaMalas, Objetivo);
   
    if (Motor[playerid] == true)
    {
        SetVehicleParamsEx(Veiculo, 0, 0, Alarme, Portas, Capo, PortaMalas, Objetivo);
        Motor[playerid] = false;
    }
    else
    {
        SetVehicleParamsEx(vehicleid, 1, 1, 0, Portas, Capo, PortaMalas, Objetivo);
        Motor[playerid] = true;
    }
   
    return 1;
}
EDIT @OFF:

darkxdll tб de perseguiзгo comigo o.O sempre respondendo os mesmos tуpicos kkk
Reply


Messages In This Thread
Dano mбximo sniper e /motor - by SouUmaJujuba - 16.08.2013, 00:53
Re: Dano mбximo sniper e /motor - by darkxdll - 16.08.2013, 00:58
Re: Dano mбximo sniper e /motor - by Juniiro3 - 16.08.2013, 01:02
Re : Dano mбximo sniper e /motor - by ThiagoMK - 16.08.2013, 01:04
Re: Re : Dano mбximo sniper e /motor - by Juniiro3 - 16.08.2013, 01:06
Re: Dano mбximo sniper e /motor - by Mteck - 16.08.2013, 04:17
Re: Dano mбximo sniper e /motor - by bruxo00 - 16.08.2013, 10:11

Forum Jump:


Users browsing this thread: 1 Guest(s)