Treba mi da se ovi dole laseri uklanjaju jedanp o jedan ne odjednom ako neko moze da pmogne hvala 😄
new LaseriObj,
public OnGameModeInit( ) {
//========================= laseri za galeriju =============================
LaseriObj = CreateDynamicObject(18643, 2035.621826, 180.957458, 1587.588745, 0.000000, 0.000000, 0.000000, object_world, object_int, -1, 300.00, 300.00);
LaseriObj = CreateDynamicObject(18643, 2035.621826, 180.957458, 1587.737304, 0.000000, 0.000000, 0.000000, object_world, object_int, -1, 300.00, 300.00);
LaseriObj = CreateDynamicObject(18643, 2035.621826, 180.957458, 1587.888916, 0.000000, 0.000000, 0.000000, object_world, object_int, -1, 300.00, 300.00);
LaseriObj = CreateDynamicObject(18643, 2035.621826, 180.957458, 1588.055664, 0.000000, 0.000000, 0.000000, object_world, object_int, -1, 300.00, 300.00);
LaseriObj = CreateDynamicObject(18643, 2035.621826, 180.957458, 1588.195190, 0.000000, 0.000000, 0.000000, object_world, object_int, -1, 300.00, 300.00);
LaseriObj = CreateDynamicObject(18643, 2035.621826, 180.957458, 1588.364868, 0.000000, 0.000000, 0.000000, object_world, object_int, -1, 300.00, 300.00);
LaseriObj = CreateDynamicObject(18643, 2035.621826, 180.957458, 1588.518676, 0.000000, 0.000000, 0.000000, object_world, object_int, -1, 300.00, 300.00);
LaseriObj = CreateDynamicObject(18643, 2035.621826, 180.957458, 1588.672485, 0.000000, 0.000000, 0.000000, object_world, object_int, -1, 300.00, 300.00);
LaseriObj = CreateDynamicObject(18643, 2035.621826, 180.957458, 1588.826293, 0.000000, 0.000000, 0.000000, object_world, object_int, -1, 300.00, 300.00);
LaseriObj = CreateDynamicObject(18643, 2035.621826, 180.957458, 1588.980102, 0.000000, 0.000000, 0.000000, object_world, object_int, -1, 300.00, 300.00);
LaseriObj = CreateDynamicObject(18643, 2035.621826, 180.957458, 1589.142333, 0.000000, 0.000000, 0.000000, object_world, object_int, -1, 300.00, 300.00);
LaseriObj = CreateDynamicObject(18643, 2035.621826, 180.957458, 1589.304565, 0.000000, 0.000000, 0.000000, object_world, object_int, -1, 300.00, 300.00);
LaseriObj = CreateDynamicObject(18643, 2035.621826, 180.957458, 1589.461181, 0.000000, 0.000000, 0.000000, object_world, object_int, -1, 300.00, 300.00);
LaseriObj = CreateDynamicObject(18643, 2035.621826, 180.957458, 1589.652099, 0.000000, 0.000000, 0.000000, object_world, object_int, -1, 300.00, 300.00);
LaseriObj = CreateDynamicObject(18643, 2035.621826, 180.957458, 1589.835449, 0.000000, 0.000000, 0.000000, object_world, object_int, -1, 300.00, 300.00);
CMD:unistilasere(playerid) {
//Na primer, unisticu sve odjednom za pocetak
for(new i = 0; i < 15; i++) { //Ako imas vise objekata i sve unistavam odjednom, najbolje koristiti loop za to ( i < 6 je u zavisnosti od broja objekata, slicno kao prikazivanje tdova na primer )
DestroyDynamicObject(LaseriObj); //Ovde smo sada unistili objekat sa indexom i, tako da ce unistiti dva objekta, ili 100 objekata sa 3 linije koda
}
//////////////////////////////////////////////////// Ajmo sada unistiti samo jedan
DestroyDynamicObject(LaseriObj); //Sada, sve zavisi na koji nacin unistavas, mozes koristiti neku promenljivu kao brojac, mozes napamet
//Pazi samo da ne pomesas CreateObject i CreateDynamicObject
return 1;
}