[Ajuda] KEY_YES
#3

PHP код:
    new veiculoid GetPlayerVehicleID(playerid);
    new 
enginelightsalarmdoorsbonnetbootobjective;
    if ((
newkeys KEY_YES) && !(oldkeys KEY_YES) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
            if (
IsPlayerInAnyVehicle(playerid))
            {
                if(
lights ==  VEHICLE_PARAMS_OFF)
                {
                    
SetVehicleParamsEx(veiculoidengineVEHICLE_PARAMS_ONfalsedoorsbonnetbootobjective);
                    
GameTextForPlayer(playerid"~w~farois ~b~~h~ligados~w~."10005);
                }
                else
                 if(
lights ==  VEHICLE_PARAMS_ON)
                {
                    
SetVehicleParamsEx(veiculoidengineVEHICLE_PARAMS_OFFfalsedoorsbonnetbootobjective);
                    
GameTextForPlayer(playerid"~w~farois ~r~desligados~w~."10005);
                }
            }
    } 
Reply


Messages In This Thread
KEY_YES - by matheusspohr - 07.05.2015, 06:48
Re: KEY_YES - by DiegoCosta - 07.05.2015, 07:00
Re: KEY_YES - by LuisFerreira - 07.05.2015, 15:12
Re: KEY_YES - by DiegoCosta - 07.05.2015, 15:22
Re: KEY_YES - by LuisFerreira - 07.05.2015, 15:25
Re: KEY_YES - by DiegoCosta - 07.05.2015, 15:29
Re: KEY_YES - by LuisFerreira - 07.05.2015, 15:31
Re: KEY_YES - by Bruno13 - 07.05.2015, 16:30
Re: KEY_YES - by matheusspohr - 07.05.2015, 16:35
Re: KEY_YES - by Bruno13 - 07.05.2015, 16:35

Forum Jump:


Users browsing this thread: 2 Guest(s)