View Full Version : Making a player's marker invisible?

06/05/2014, 09:53 PM

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

06/05/2014, 09:57 PM

06/05/2014, 10:08 PM
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:

new invisible_color = GetPlayerColor(playerid) & ~0xFF;
SetPlayerColor(playerid, invisible_color);

06/05/2014, 10:39 PM
Yes. On my gangwars server I am developing I have a Sniper class and I need the markers to be invisible.

06/05/2014, 10:51 PM
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:
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