Jump to content

script Easy Vehicle Lights v1


Ewwe

Recommended Posts

  • Administrátor

#include 
new LightsOn[MAX_VEHICLES char] = {0,...};
 
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_NO)
    {
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
            new engine,lights,alarm,doors,bonnet,boot,objective;
            GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective);
            if(LightsOn{GetPlayerVehicleID(playerid)} == 0)
            {
                SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,1,alarm,doors,bonnet,boot,objective);
                LightsOn{GetPlayerVehicleID(playerid)} = 1;
            }else{
                SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,0,alarm,doors,bonnet,boot,objective);
                LightsOn{GetPlayerVehicleID(playerid)} = 0;
            }
        }
    }
    return 1;
}

 

Direct DownLoad

 

ČTĚTE :http://pawno.cz/two-script-fix-t30606.html

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...