Object Distance
#5

Quote:
Originally Posted by Aliassassin123456
View Post
1. Replace All CreateObject/CreateDynamicObject to CreateDynamicObjectEx
2. Change CreateDynamicObjectEx parameters in the include (streamer.inc)
pawn Code:
(
native CreateDynamicObjectEx(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, Float:drawdistance = 0.0, Float:streamdistance = 200.0, worlds[] = { -1 }, interiors[] = { -1 }, players[] = { -1 }, maxworlds = sizeof worlds, maxinteriors = sizeof interiors, maxplayers = sizeof players);
to ->
native CreateDynamicObjectEx(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, Float:drawdistance = 700.0, Float:streamdistance = 700.0, worlds[] = { -1 }, interiors[] = { -1 }, players[] = { -1 }, maxworlds = sizeof worlds, maxinteriors = sizeof interiors, maxplayers = sizeof players);
)
3. Now use this function in your OnGameModeInit Callback ( put Streamer_VisibleItems(STREAMER_TYPE_OBJECT, 1000); on your OnGameModeInit )
4. Now Your Problem Fixed!!!
I did this now,but i got question will my server lag or something with more players?
Reply


Messages In This Thread
Object Distance - by maxy153 - 06.10.2013, 23:15
AW: Object Distance - by Arrows73 - 07.10.2013, 16:32
Re: Object Distance - by Aliassassin123456 - 07.10.2013, 16:42
Re: Object Distance - by RajatPawar - 07.10.2013, 16:50
Re: Object Distance - by ***Niko*** - 13.10.2013, 13:38

Forum Jump:


Users browsing this thread: 1 Guest(s)