Player marker still showing
#1

I've got this piece of code in OnPlayerSpawn:
pawn Code:
if(GetPVarInt(playerid, "Aduty") == 1)
        {
            SetPlayerSkin(playerid, 294);
            SetPlayerColor(playerid, COLOR_WHITE);
            GivePlayerWeapon(playerid, 35, 0);
            GivePlayerWeapon(playerid, 38, 11000);
            for(new i = 0; i < MAX_PLAYERS; i++) SetPlayerMarkerForPlayer(i, playerid, GetPlayerColor(playerid) & 0xFFFFFF00);
        }
Everything works fine here except the player marker, when the player spawns his marker turns white instead of being invisible.

BTW this is for a spectating system, so that if the player was on duty and stopped spectating, it should return everything to normal.
Reply
#2

If this player is to be invisible for everyone, then why don't you just set the player's color to invisible?
Reply
#3

Isn't that supposed to be the job: GetPlayerColor(playerid) & 0xFFFFFF00 ?
If not how do I make it invisible?
Reply
#4

I guess that one is good, not sure.. I will test it.
Reply
#5

Actually, I ment:

pawn Code:
SetPlayerColor(playerid, 0xFFFFFF00);
And just forget about SetPlayerMarkerForPlayer. Or I am just missing something, again.
Reply
#6

Vince, that just sets the player's color to white. It doesn't make the radar marker be invisible.
Reply
#7

Quote:
Originally Posted by YoYo123
View Post
Vince, that just sets the player's color to white. It doesn't make the radar marker be invisible.
Not really, that sets his chat color to white + invisible radar color.
Reply
#8

put:

Code:
for(new i = 0; i < MAX_PLAYERS; i++) SetPlayerMarkerForPlayer(i, playerid, GetPlayerColor(playerid) & 0xFFFFFF00);
on OnPlayerSpawn
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)