13.04.2014, 12:05
Quote:
Are you sure that could not do?
Look at this picture: http://i.imgur.com/Kmt3ilz.png CreateDynamicObjectEx How it works? ie, Can this fuction create objects to a specific player? native CreateDynamicObjectEx(modelid, Float, Float:y, Float:z, Float:rx, Float:ry, Float:rz, Float:drawdistance = 0.0, Floattreamdistance = 200.0, worlds[] = { -1 }, interiors[] = { -1 }, players[] = { -1 }, maxworlds = sizeof worlds, maxinteriors = sizeof interiors, maxplayers = sizeof players); What do the players parameter and the maxplayers parameter in this case? |
Oh and the variable "players" is an array of all player IDs to which a specific object needs to be shown. "maxplayers" defines the size of that "players" array. This is per-object, so if you want to change that for all objects based on player input, the server has to loop through all objects to do so. This tactic could be quite lagg-prone with the Streamer Plugin.