Making a player's marker invisible? - 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: Making a player's marker invisible? (
/showthread.php?tid=511689)
Making a player's marker invisible? -
NoahF - 06.05.2014
Hey!
How would I go about making a player's map marker invisible? I have checked the Wiki but I still don't know how.
Thank you
Re: Making a player's marker invisible? -
iZN - 06.05.2014
https://sampwiki.blast.hk/wiki/Colors_Li...ransparency.29
https://sampwiki.blast.hk/wiki/SetPlayerMarkerForPlayer
Re: Making a player's marker invisible? -
Vince - 06.05.2014
SetPlayerColor with no alpha is probably easier (and faster) if you're doing it on global scale. To make the player's current color invisible, use:
pawn Код:
new invisible_color = GetPlayerColor(playerid) & ~0xFF;
SetPlayerColor(playerid, invisible_color);
Re: Making a player's marker invisible? -
NoahF - 06.05.2014
Yes. On my gangwars server I am developing I have a Sniper class and I need the markers to be invisible.
Re: Making a player's marker invisible? -
NoahF - 06.05.2014
Sorry for the double post -- But how would I go about setting a player's marker as invisible for only the sniper class?
Here, this might help:
pawn Код:
case 1:
{
new score = GetPlayerScore(playerid);
if(score > 50 && score < 200)//Sniper
{
GivePlayerWeapon(playerid, 8, 1); //katana
GivePlayerWeapon(playerid, 17, 5); //Teargas
GivePlayerWeapon(playerid, 24, 100); //Deagle
GivePlayerWeapon(playerid, 25, 50); //Shotgun
GivePlayerWeapon(playerid, 34, 300); //Sniper
SendClientMessage(playerid, COLOR_GREEN, "You are in the Sniper class.");
}
else SendClientMessage(playerid, COLOR_RED, "You do not have enough score for this class.");
}
I have read the "SetPlayerMarkerForPlayer" Wiki page, and I just don't understand! :P