[Ajuda] Key
#2

Faz Algo assim .
pawn Код:
if ((newkeys & KEY_YES) && !(oldkeys & KEY_YES) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        if (IsPlayerConnected(playerid) && APlayerData[playerid][LoggedIn] == true)
        {
            if (IsPlayerInAnyVehicle(playerid))
            {
                GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
                if(lights ==  VEHICLE_PARAMS_OFF)
                   SetVehicleParamsEx(vehicleid, engine, VEHICLE_PARAMS_ON, false, doors, bonnet, boot, objective);
                 if(lights ==  VEHICLE_PARAMS_ON)
                   SetVehicleParamsEx(vehicleid, engine, VEHICLE_PARAMS_OFF, false, doors, bonnet, boot, objective);
            }
        }
    }
Desculpa do mal codigo mas to sem pawn.
Reply


Messages In This Thread
Key - by StringBR - 29.06.2013, 14:16
Re: Key - by mau.tito - 29.06.2013, 14:19
Re: Key - by dPlaYer_ - 29.06.2013, 14:48

Forum Jump:


Users browsing this thread: 2 Guest(s)