SA-MP Forums Archive
Problem with SetPlayerMarkerForPlayer - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem with SetPlayerMarkerForPlayer (/showthread.php?tid=403995)



Problem with SetPlayerMarkerForPlayer - PoTTii - 01.01.2013

Hey, I want that Faction Members have a colored Name but No marker on the map, how do I do that?

I've sscripted this stock:
Quote:

stock ShowFactionShowmesForPlayer(playerid)
{
for(new i=0; i < MAX_PLAYERS; i++)
{
if(Duty[i] == 1)
{
if(GetPVarInt(i, "pTeam") == tCop || GetPVarInt(i, "pTeam") == tSheriff)
{
SetPlayerMarkerForPlayer(playerid, i, 0x0073FFFF);
}
else if(GetPVarInt(i, "pTeam") == tFeuerwehr)
{
SetPlayerMarkerForPlayer(playerid, i, 0xFF780000);
}
else if(GetPVarInt(i, "pTeam") == tOrdnungsamt)
{
SetPlayerMarkerForPlayer(playerid, i, 0x00FFB400);
}
}
else SetPlayerMarkerForPlayer(playerid, i, 0xFFFFFF00);
}
return 1;
}

I call this stock when a player goes onduty,

Quote:

for(new i; i < MAX_PLAYERS; i++)
ShowFactionShowmesForPlayer(i);

And when a player connect and in a 5 Minutes Timer.
So why is every name still white?!

thanks in advance