Problem with SetPlayerMarkerForPlayer
#1

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
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)