Show object to player but not others while in the same world. - 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: Show object to player but not others while in the same world. (
/showthread.php?tid=657899)
Show object to player but not others while in the same world. -
Seifspeed - 17.08.2018
Is it possible to show a player a certain object but not show it to others while they are on the same world. Like player checkpoints behave for example.
Thanks in advance!
Re: Show object to player but not others while in the same world. -
jop9888 - 17.08.2018
I believe it is possible with a streamer, like incognito using:
Код:
//CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 300.0);
Hence the playerid parameter in the function (-1 is for all players)
Re: Show object to player but not others while in the same world. -
Seifspeed - 17.08.2018
Quote:
Originally Posted by jop9888
I believe it is possible with a streamer, like incognito using:
Код:
//CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 300.0);
Hence the playerid parameter in the function (-1 is for all players)
|
Oh man! Thanks a million! +Rep
Re: Show object to player but not others while in the same world. -
Seifspeed - 17.08.2018
I also found this:
https://sampwiki.blast.hk/wiki/CreatePlayerObject