26.11.2018, 23:01
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.
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
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 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