Guten Abend Community,
Ich habe in meinem Script diesen befehl zum Fahrzeuge spawnen:
ocmd:veh(playerid,params[])
{
if(!isPlayerAnAdmin(playerid,4))return SendClientMessage(playerid,Rot,"S.Y.S.T.E.M: Du bist kein Admin / Rang 4.");
{
new Float:x, Float:y, Float:z;
new Text3D:supportveh[MAX_VEHICLES];
new c1,c2,vid;
if(sscanf(params,"iii",vid,c1,c2))return SendClientMessage(playerid,Orange,"S.Y.S.T.E.M: /veh [CarID] [Farbe1] [Farbe2]");
{
if(vid<402||vid>603)return SendClientMessage(playerid,Rot,"Ungültige Fahrzeug-ID.");
{
GetPlayerPos(playerid,x,y,z);
new car;
SetVehicleNumberPlate(car = CreateVehicle(vid,x,y,z,3,c1,c2,-1),"Support");
PutPlayerInVehicle(playerid,car,0);
SendClientMessage(playerid,Rot,"Du hast ein Support Fahrzeug gespawnt.");
supportveh[car] = Create3DTextLabel("Support Fahrzeug", Blau,0.0,0.0,0.0,30.0,0,1);
Attach3DTextLabelToVehicle(supportveh[car],car,0.0,0.0,2.0);
return 1;
}
}
}
}
{
if(!isPlayerAnAdmin(playerid,4))return SendClientMessage(playerid,Rot,"S.Y.S.T.E.M: Du bist kein Admin / Rang 4.");
{
new Float:x, Float:y, Float:z;
new Text3D:supportveh[MAX_VEHICLES];
new c1,c2,vid;
if(sscanf(params,"iii",vid,c1,c2))return SendClientMessage(playerid,Orange,"S.Y.S.T.E.M: /veh [CarID] [Farbe1] [Farbe2]");
{
if(vid<402||vid>603)return SendClientMessage(playerid,Rot,"Ungültige Fahrzeug-ID.");
{
GetPlayerPos(playerid,x,y,z);
new car;
SetVehicleNumberPlate(car = CreateVehicle(vid,x,y,z,3,c1,c2,-1),"Support");
PutPlayerInVehicle(playerid,car,0);
SendClientMessage(playerid,Rot,"Du hast ein Support Fahrzeug gespawnt.");
supportveh[car] = Create3DTextLabel("Support Fahrzeug", Blau,0.0,0.0,0.0,30.0,0,1);
Attach3DTextLabelToVehicle(supportveh[car],car,0.0,0.0,2.0);
return 1;
}
}
}
}
Nur meine frage ist,
wenn ich 10 fahrzeuge erstelle, wie kann ich alle auf einmal mit einem befehl löschen?
Gruß Runcorn