ja hallo mein gamemode restartet imemr wenn ich /kofferaum Deagle mach oder was anderes immer wenn ich /kofferaum
und hinten ein name machen vllt könnt ihr mir helfen
dcmd_kofferraum(playerid,params[])
{
new status[4];
if(sscanf(params,"s",status))return SendClientMessage(playerid,COLOR_GRAD1,"Benutzung: /kofferraum [auf/zu]");
new engine,lights,alarm,doors,bonnet,boot,objective;
if(IsPlayerInAnyVehicle(playerid))
{
new vid = GetPlayerVehicleID(playerid);
if(strcmp(status,"auf",true) == 0)
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective);
SendClientMessage(playerid,COLOR_LIGHTBLUE,"*Du hast den Kofferraum geöffnet!");
}
else if(strcmp(status,"zu",true) == 0)
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_OFF,objective);
SendClientMessage(playerid,COLOR_LIGHTBLUE,"*Du hast den Kofferraum geschlossen!");
}
}
return 1;
}