Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Alpays on Mar 30, 2020, 03:08 PM

Title: How to add Markers for players
Post by: Alpays on Mar 30, 2020, 03:08 PM
Can someone help me when i search Marker for Players they say use playerUniqueWorld what is this? Can someone give me  an example code?
Title: Re: How to add Markers for players
Post by: DizzasTeR on Mar 30, 2020, 03:29 PM
A player's unique world is a special world for that player where only he will see the stuff.

Lets say you set a marker's world to player.UniqueWorld, then only THAT player will see the marker, and nobody else would.
Title: Re: How to add Markers for players
Post by: Alpays on Mar 30, 2020, 03:34 PM
Quote from: Doom_Kill3R on Mar 30, 2020, 03:29 PMA player's unique world is a special world for that player where only he will see the stuff.

Lets say you set a marker's world to player.UniqueWorld, then only THAT player will see the marker, and nobody else would.

Thanks but how can i use playeruniqueworld

CreateMarker(1, player.UniqueWorld( -597.398, 670.632, 11.3937  ), 5,RGB(255, 255, 0),11);
i tried this and didnt work
Title: Re: How to add Markers for players
Post by: Alpays on Mar 30, 2020, 07:25 PM
Quote from: Alpays on Mar 30, 2020, 03:34 PM
Quote from: Doom_Kill3R on Mar 30, 2020, 03:29 PMA player's unique world is a special world for that player where only he will see the stuff.

Lets say you set a marker's world to player.UniqueWorld, then only THAT player will see the marker, and nobody else would.

Thanks but how can i use playeruniqueworld

CreateMarker(1, player.UniqueWorld( -597.398, 670.632, 11.3937  ), 5,RGB(255, 255, 0),11);
i tried this and didnt work

I fixed my mistake  CreateMarker(player.UniqueWorld,Vector( x,y,z  ),