Kannst da einen Trick nutzen:
C
//In Lager start:
new k_start, k_ende;
k_start = CreatePlayerObject(...); //Also beim ersten
//Dann hier alle anderen CreatePlayerObject
k_ende = CreatePlayerObject(...); //Hier beim letzten
//Dann nutzt du einfach pvars:
SetPVarInt(playerid,"k_obj_start",k_start);
SetPVarInt(playerid,"k_obj_ende",k_ende);
//Und dann bei Lager stop:
new k_start = GetPVarInt(playerid,"k_obj_start"),k_ende = GetPVarInt(playerid,"k_obj_ende");
DeletePVar(playerid,"k_obj_start"),DeletePVar(playerid,"k_obj_ende");
for(new i=k_start; i<=k_ende; i++) DestroyPlayerObject(playerid, i);
Alles anzeigen