How could i make other players invisible on the radar?
#1

Hi, well i created a job system that uses checkpoints and when there are people around it could get in the way of seeing the checkpoint in the map. So i want to make players invisible for the specific player only when he is at work. I was thinking about looping: SetPlayerMarkerForPlayer, this would make other players disappear. I could also use this, to set the colors back after the job is finished. But here is where my question comes in, if after the job is finished and some players color changes, will it change for this player? or it will remain what i set it to for SetPlayerMarkerForPlayer? If it will stay what i set it to, how could i get around this and at the end of the job, just show everybodys original colors? thank you.
Reply
#2

How about virtual worlds?
Reply
#3

I supposed you could use something like:
PHP код:
SetPlayerMarkerForPlayer(iplayeridGetPlayerColor(i)); 
Reply
#4

If you want to make player marker invisible you can set player color with 0 alpha.
ex:
PHP код:
SetPlayerColor(playerid, ( GetPlayerColor(playerid) & 0xFFFFFF00 ) | 0x00 ) ); 
and set alpha back to 0xFF (or any value) to make his marker visible.
Reply
#5

Quote:
Originally Posted by Vince
Посмотреть сообщение
I supposed you could use something like:
PHP код:
SetPlayerMarkerForPlayer(iplayeridGetPlayerColor(i)); 
Thats what i was thinking of using, but the question remins. After i do this, and for example the player that i used GetPlayerColor(i) on, to set his color for this player. If the server changes that players color, will it change for this player? Or it will stay for this player what i set it at SetPlayerMarkerForPlayer? What i am trying to ask is, after using this command, when everyone is visible again, if i do changes to peoples colors will this player be able to see the changes?
Reply
#6

Quote:
Originally Posted by ]Rafaellos[
Посмотреть сообщение
How about virtual worlds?
I want the player to be still in the same virtual world with other players, i just want him to be able to see where he needs to go.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)