load command for streamed maps - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: load command for streamed maps (
/showthread.php?tid=406161)
______ -
Mellnik - 09.01.2013
______
Re: load command for streamed maps -
JavoDiaz - 09.01.2013
I'll use ZCMD.
pawn Код:
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;
}
If you want to load some objects you can do:
pawn Код:
new ObjArray[count your objects];
and then:
pawn Код:
ObjArray[0] = CreateDynamicObject...
ObjArray[1] = CreateDynamicObject...
ObjArray[2] = CreateDynamicObject...
...
and then in the command you have to put to destroy these objects and load again:
pawn Код:
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;
}
Good luck!
AW: load command for streamed maps -
Mellnik - 09.01.2013
I know about this but i wont do that ob 17k objects. Is there any other method?
Re: load command for streamed maps -
dr.lozer - 09.01.2013
there is... let me think
Re: load command for streamed maps -
Hoss - 13.01.2013
Load them from a .txt file
AW: Re: load command for streamed maps -
Mellnik - 19.01.2013
Quote:
Originally Posted by Hoss
Load them from a .txt file
|
No advantage