if(strcmp(cmd, "/kofferraum", true) == 0)
{
if(PlayerInfo[playerid][pTot] == 1)
{
SendClientMessage(playerid, COLOR_GREY, "Tote können keine Befehle nutzen!");
return 1;
}
new vid = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
if(kofferraum[vid] == 0)
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective);
kofferraum[vid] = 1;
SendClientMessage(playerid,COLOR_WHITE,"Du hast den Kofferraum geöffnet!");
}
else
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_OFF,objective);
kofferraum[vid] = 0;
SendClientMessage(playerid,COLOR_WHITE,"Du hast den Kofferraum geschlossen!");
SendRconCommand("gmx");
}
return 1;
}
Sehr Interessant!
Aber dennoch schönes Script