Making a player's marker invisible?
#1

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
Reply
#2

https://sampwiki.blast.hk/wiki/Colors_Li...ransparency.29
https://sampwiki.blast.hk/wiki/SetPlayerMarkerForPlayer
Reply
#3

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);
Reply
#4

Yes. On my gangwars server I am developing I have a Sniper class and I need the markers to be invisible.
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)