Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(newkeys & KEY_ACTION)
- {
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
- new veh = GetPlayerVehicleID(playerid);
- if(GetPVarInt(playerid, "Lights") == 0) {
- GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(veh,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
- SetPVarInt(playerid, "Lights", 1);
- }
- else if(GetPVarInt(playerid, "Lights") == 1) {
- GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(veh,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
- SetPVarInt(playerid, "Lights", 0);
- } (AICI ESTE ERROAREA 4873)
- }
- return 1; (AICI ESTE ERROAREA 4875)
- }
- if(newkeys & KEY_ANALOG_UP)
- {
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
- new veh = GetPlayerVehicleID(playerid);
- if(GetPVarInt(playerid, "Bonnet") == 0) {
- GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(veh,engine,lights,alarm,doors,VEHICLE_PARAMS_ON,boot,objective);
- SetPVarInt(playerid, "Bonnet", 1);
- }
- else if(GetPVarInt(playerid, "Bonnet") == 1) {
- GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(veh,engine,lights,alarm,doors,VEHICLE_PARAMS_OFF,boot,objective);
- SetPVarInt(playerid, "Bonnet", 0);
- }
- }
- return 1; (AICI ESTE ERROAREA 4892)
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement