Player marker still showing -
YoYo123 - 14.02.2013
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.
Re: Player marker still showing -
Vince - 14.02.2013
If this player is to be invisible for everyone, then why don't you just set the player's color to invisible?
Re: Player marker still showing -
YoYo123 - 14.02.2013
Isn't that supposed to be the job: GetPlayerColor(playerid) & 0xFFFFFF00 ?
If not how do I make it invisible?
Re: Player marker still showing -
-Shifty- - 14.02.2013
I guess that one is good, not sure.. I will test it.
Re: Player marker still showing -
Vince - 14.02.2013
Actually, I ment:
pawn Code:
SetPlayerColor(playerid, 0xFFFFFF00);
And just forget about SetPlayerMarkerForPlayer. Or I am just missing something, again.
Re: Player marker still showing -
YoYo123 - 14.02.2013
Vince, that just sets the player's color to white. It doesn't make the radar marker be invisible.
Re: Player marker still showing -
DaRk_RaiN - 14.02.2013
Quote:
Originally Posted by YoYo123
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.
Re: Player marker still showing -
Snich - 11.10.2014
put:
Code:
for(new i = 0; i < MAX_PLAYERS; i++) SetPlayerMarkerForPlayer(i, playerid, GetPlayerColor(playerid) & 0xFFFFFF00);
on OnPlayerSpawn