Also habe den folgenden befehl vom script genommn und von engine lights gemcht aber der startet trozdem den motor was kann ich machen damit das liht angeht
if(strcmp(cmd, "/lights",true) == 0)
{
if(IsANoTachoVehicle(GetPlayerVehicleID(playerid)))
{
SendClientMessage(playerid, COLOR_GREY, "Dein Fahrrad hat kein Dynamo!");
return 1;
}
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return 1;
new engine,lights,alarm,doors,bonnet,boot,objective;
new vid = GetPlayerVehicleID(playerid);
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
if(vid != INVALID_VEHICLE_ID)
{
if(lights == VEHICLE_PARAMS_ON) //<--- Bei lights stande engine
{
SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
SendClientMessage(playerid, COLOR_GREY, "Licht ausgeschaltet....");
}
else
{
SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
SendClientMessage(playerid, COLOR_GREY, "Licht angeschaltet....");
}
}
return 1;
}