09.01.2013, 11:51
(
Последний раз редактировалось Mellnik; 08.01.2014 в 21:02.
)
______
CMD:load(playerid, params[])
{
//for(new i; i < MAX_OBJECTS; ++i) DestroyDynamicObject(i); // if you want to destroy the objects and load again uncomment this.
//here all your CreateDynamicObject that you want to load again.
return 1;
}
new ObjArray[count your objects];
ObjArray[0] = CreateDynamicObject...
ObjArray[1] = CreateDynamicObject...
ObjArray[2] = CreateDynamicObject...
...
CMD:load(playerid, params[])
{
//for(new i; i < sizeof(ObjArray); ++i) DestroyDynamicObject(ObjArray[i]); // if you want to destroy the objects and load again uncomment this.
for(new o; o < sizeof(ObjArray); ++o) ObjArray[o] = CreateDynamicObject...
return 1;
}