Invisible on minimap - 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: Invisible on minimap (
/showthread.php?tid=574228)
Invisible on minimap -
kyriakos587 - 14.05.2015
I just wanted to know how i can make players invisible on minimap, not for all players, i have a class in my gamemode "Cops" and i want the class "Cops" to be invisible for the players, so how can i do that.
Re: Invisible on minimap -
Konstantinos - 14.05.2015
https://sampwiki.blast.hk/wiki/SetPlayerMarkerForPlayer
Re: Invisible on minimap -
Vince - 14.05.2015
I'm not entirely sure what you mean by "not for all players". If you mean to make an individual player invisible to everyone you can just set their alpha to 0 like so:
pawn Код:
SetPlayerColor(playerid, GetPlayerColor(playerid) & ~0xFF);
However, if the cops need to see each other you will need to use SetPlayerMarkerForPlayer in a loop. First use the above to make the player invisible to everyone. Then start a player loop, check if they are a cop and use SetPlayerMarkerForPlayer accordingly.
Re: Invisible on minimap -
kyriakos587 - 14.05.2015
Quote:
Originally Posted by Konstantinos
|
Quote:
Originally Posted by Vince
I'm not entirely sure what you mean by "not for all players". If you mean to make an individual player invisible to everyone you can just set their alpha to 0 like so:
pawn Код:
SetPlayerColor(playerid, GetPlayerColor(playerid) & ~0xFF);
However, if the cops need to see each other you will need to use SetPlayerMarkerForPlayer in a loop. First use the above to make the player invisible to everyone. Then start a player loop, check if they are a cop and use SetPlayerMarkerForPlayer accordingly.
|
Aight, thank you.