15.10.2013, 14:07
Why do you have all that shit? Lol
Also make sure to have this in OnGameModeInit()
pawn Code:
CMD:carlights(playerid,params[])
{
if(GetPlayerState(playerid) == 2)
{
new veh = GetPlayerVehicleID(playerid);
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(veh, engine, lights, alarm, doors, bonnet, boot, objective);
{
if(lights == 0)
{
SetVehicleParamsEx(veh, engine, 1, alarm, doors, bonnet, boot, objective);
SendEmote(playerid,"presses an button behind the steering wheel to turn on the lights.");
return 1;
}
else
{
SetVehicleParamsEx(veh, engine, 0, alarm, doors, bonnet, boot, objective);
SendEmote(playerid,"presses an button behind the steering wheel to turn off the lights.");
return 1;
}
}
}
else
{
SendErrorMsg(playerid,"You are not in a vehicle.");
return 1;
}
}
pawn Code:
ManualVehicleEngineAndLights();