[Help]Question - 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: [Help]Question (
/showthread.php?tid=566156)
[Help]Question -
duteba - 03.03.2015
It's possible to make some objects to appear only when a player type a command? and see in a different virtual world?.i mean in virtual world 0 if i go there i don't wanna see the objects.Only if i type the command
Re : [Help]Question -
Golimad - 03.03.2015
There are two solutions for this :
1 - Streamer , by Incognito. using this callback : ( Plugin + include available on SAMP forums. )
Код:
CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 200.0, Float:drawdistance = 0.0);
2 - Need the include and plugin above + define the object var,
Код:
new myobject;
when player types command :
myobject = CreateDynamicObject ....
when he wants to remove the object with a commad :
DestroyDynamicObject(myobject);
Link :
https://sampforum.blast.hk/showthread.php?tid=102865
Respuesta: [Help]Question -
alexus - 03.03.2015
Unfortunately, created objects will appear in all worlds (and that's very annoying). Perhaps the new version 0.3.7 will add this parameter to "CreateObject"
Edit to say that I forget the Streamer, of course... Thanks Golimad !