14.02.2013, 15:42
I've got this piece of code in OnPlayerSpawn:
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.
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);
}
BTW this is for a spectating system, so that if the player was on duty and stopped spectating, it should return everything to normal.