Create and Destroy Dynamic(Player)Objects
#1

Hi guys

I have Roleplay server and for Winter I'm think to add snow objects.But I'm think to do that players can disable and enable snow objects.I have 500 snow objects,so my question is:Is it possible to do,and how?
I need to create 500 variable for all player?I hope no.

Quote:

native STREAMER_TAG_OBJECT CreateDynamicObject(modelid, Float, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Floattreamdistance = STREAMER_OBJECT_SD, Float:drawdistance = STREAMER_OBJECT_DD, STREAMER_TAG_AREA areaid = STREAMER_TAG_AREA -1, priority = 0);

I will use parametar playerid from CreateDynamicObject to create objects for player which is enable snow objects.But I don't know how to disable(destroy) objects when players want it(and on disconnect)

I need to use DestroyDynamicObject,but I need to know all object id's.But it's 500 variable per player,i don't think that it's smart..( 500 * 250 = 125000 )

What is best to do in my case? Thanks
Reply


Messages In This Thread
Create and Destroy Dynamic(Player)Objects - by GospodinX - 26.11.2018, 23:01
Re: Create and Destroy Dynamic(Player)Objects - by GospodinX - 01.12.2018, 22:29

Forum Jump:


Users browsing this thread: 1 Guest(s)