[Ajuda] KEY_YES
#3

PHP код:
    new veiculoid = GetPlayerVehicleID(playerid);
    new 
engine, lights, alarm, doors, bonnet, boot, objective;
    if ((
newkeys & KEY_YES) && !(oldkeys & KEY_YES) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
            if (
IsPlayerInAnyVehicle(playerid))
            {
                if(
lights ==  VEHICLE_PARAMS_OFF)
                {
                    
SetVehicleParamsEx(veiculoid, engine, VEHICLE_PARAMS_ON, false, doors, bonnet, boot, objective);
                    
GameTextForPlayer(playerid, "~w~farois ~b~~h~ligados~w~.", 1000, 5);
                }
                else
                 if(
lights ==  VEHICLE_PARAMS_ON)
                {
                    
SetVehicleParamsEx(veiculoid, engine, VEHICLE_PARAMS_OFF, false, doors, bonnet, boot, objective);
                    
GameTextForPlayer(playerid, "~w~farois ~r~desligados~w~.", 1000, 5);
                }
            }
    } 
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: 1 Guest(s)