SA-MP Forums Archive
CreateDynamicObject and CreateObject using both - 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: CreateDynamicObject and CreateObject using both (/showthread.php?tid=399247)



CreateDynamicObject and CreateObject using both - Vvolk - 13.12.2012

Hello everybody. I have big question. Can I use incognito's streamer function CreateDynamycObject and samp original function CreateObject both? If I have 10k+ incognitos objects, how much can I have CreateObject's ? Because with incognitos objects players can fall because objects load slowly... Or can I do something to prevent players from falling from incognito's objects? Streamer_TickRate(rate);? How much?


Re: CreateDynamicObject and CreateObject using both - Lordzy - 13.12.2012

I believe that 'CreateObject' allows to add 1k objects in a script.


Re: CreateDynamicObject and CreateObject using both - park4bmx - 13.12.2012

CreatObject has a limit of 1000 objects
so use incognitos
you can prevent the from felling like this
pawn Code:
stock SetPlayerPosEx(playerid,Float:X,Float:Y,Float:Z)
{
      SetPlayerPos(playerid,X,Y,Z);
      TogglePlayerControllable(playerid,0);
      SetTimerEx("UnfreezePlayer",2000, false, "i",playerid);
}
forward UnfreezePlayer(playerid);
public UnfreezePlayer(playerid)
{
    TogglePlayerControllable(playerid,1);
    return 1;
}
then when ever you change someones pos use
pawn Code:
SetPlayerPosEx(playerid,Float:X,Float:Y,Float:Z)
to set it. it will hold the player in the same pos for 2sec(you can change it).