GetPlayerVehicleEx
#4

PHP код:
public OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    if(
newkeys == KEY_SUBMISSION)
    {
        if(
GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
            new 
vehicle;
            
vehicle GetPlayerVehicleID(playerid);
            new 
enginelightsalarmsdoorsbonnetbootobjective;
            
GetVehicleParamsEx(vehicleenginelightsalarmsdoorsbonnetbootobjective);
            
SetVehicleParamsEx(vehicle, (engine>0?0:1), lightsalarmsdoorsbonnetbootobjective);
        }
    }
    return 
1;

Reply


Messages In This Thread
GetPlayerVehicleEx - by Sheperc - 04.12.2015, 12:25
Re: GetPlayerVehicleEx - by Denying - 04.12.2015, 12:34
Re: GetPlayerVehicleEx - by SupperRobin6394 - 04.12.2015, 12:35
Re: GetPlayerVehicleEx - by AbyssMorgan - 04.12.2015, 12:59
Re: GetPlayerVehicleEx - by Sheperc - 04.12.2015, 12:59
Re: GetPlayerVehicleEx - by DRIFT_HUNTER - 04.12.2015, 15:14
Re: GetPlayerVehicleEx - by Denying - 05.12.2015, 11:53

Forum Jump:


Users browsing this thread: 1 Guest(s)