Hey,
Bei meinem Motorsystem kann auch der Beifahrer den Motor starten uns stoppen wieso das?
if(strcmp(cmd,"/motor",true)==0)
{
if(IsPlayerInAnyVehicle(playerid))
{
new vid = GetPlayerVehicleID(playerid);
if(Tankmenge[vid] <= 1) return SendClientMessage(playerid,0xFF0000,"Der Tank ist leer.");
{
if(motor[vid] == false)
{
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
motor[vid] = true;
SendClientMessage(playerid,0xFF0000,"Du hast den Motor gestartet!");
}
else
{
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
motor[vid] = false;
SendClientMessage(playerid,0xFF0000,"Du hast den Motor abgeschaltet!");
}
}
}
}
mfg. zuromon