[Ajuda] Ligar Carros
#3

Desta forma vocк estб setando apenas para o jogador.

SetPVarInt(playerid, "Engine", 0);

pawn Код:
if((newkeys == 8192) && (IsPlayerInAnyVehicle(playerid)))
{
    new vid = GetPlayerVehicleID(playerid);
    new engine,lights,alarm,doors,bonnet,boot,objective;

    GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    if(engine == 0)
    {
        SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,boot,boot,objective);
        SendClientMessage(playerid, COLOR_WHITE, "Ligas-te o carro!!");
    }
    else
    {
        SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,boot,boot,objective);
        SendClientMessage(playerid, COLOR_WHITE, "Desligas-te o carro!!");
    }
    return 1;
}
Reply


Messages In This Thread
[Ajuda] Ligar Carros - by Joaogl - 31.10.2011, 18:40
Re: [Ajuda] Ligar Carros - by felipe360 - 31.10.2011, 18:48
Re: [Ajuda] Ligar Carros - by ViniBorn - 31.10.2011, 19:29
Re: [Ajuda] Ligar Carros - by whiXґ - 31.10.2011, 19:39
Re: [Ajuda] Ligar Carros - by ViniBorn - 31.10.2011, 19:40
Re: [Ajuda] Ligar Carros - by whiXґ - 31.10.2011, 19:42
Re: [Ajuda] Ligar Carros - by Joaogl - 31.10.2011, 20:31
Re: [Ajuda] Ligar Carros - by ViniBorn - 31.10.2011, 20:37
Re: [Ajuda] Ligar Carros - by Joaogl - 31.10.2011, 21:28
Re: [Ajuda] Ligar Carros - by Joaogl - 31.10.2011, 21:41

Forum Jump:


Users browsing this thread: 1 Guest(s)