Object only show for playerid? - 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: Object only show for playerid? (
/showthread.php?tid=341347)
Object only show for playerid? -
Admigo - 10.05.2012
Heey all,
Is it possible to show objects only for playerid?
Thanks Admigo
Re: Object only show for playerid? -
iFederal - 10.05.2012
If this what you mean
https://sampwiki.blast.hk/wiki/SetPlayerAttachedObject
Re: Object only show for playerid? -
WarriorEd22 - 10.05.2012
Wait are you saying only show up for a specific person? Wouldn't that be kind of like mods for the player though I've never heard of anyone do that before.
Re: Object only show for playerid? -
Admigo - 10.05.2012
Yes,I want to make a gps system with the white arrow(131

so i am using it as object.
Re: Object only show for playerid? -
WarriorEd22 - 10.05.2012
Here you go:
https://sampforum.blast.hk/showthread.php?tid=291090
https://sampforum.blast.hk/showthread.php?tid=292031
Re: Object only show for playerid? -
Admigo - 10.05.2012
Thanks but i am already using it ,i didnt know that it show only for one player.
One Question:
U know how to destroy the objects when they passed the arrows like:
Код:
-//Arrows that i need to follow to go to my location
-//Arrows that i need to follow to go to my location
-//Arrows that i need to follow to go to my location
^//my car is driving to the arrows
x//I passed this arrow so i need to destroy this arrow
x//I passed this arrow so i need to destroy this arrow
x//I passed this arrow so i need to destroy this arrow
x//I passed this arrow so i need to destroy this arrow
Re: Object only show for playerid? -
SuperViper - 10.05.2012
Either use
https://sampwiki.blast.hk/wiki/SetPlayerAttachedObject
or
https://sampwiki.blast.hk/wiki/CreatePlayerObject
For the second one, you need to attach the object to a player.
Re: Object only show for playerid? -
Admigo - 10.05.2012
I think you dont know what i mean. Look the links that warior sended me. Thats not attached....
Re: Object only show for playerid? -
Basssiiie - 10.05.2012
If you want to create an object that only a specific player can see, you can use CreatePlayerObject. I don't know why everyone is talking about attached objects, because it's never mentioned by admigo?