18.08.2009, 06:03
So guys, I'm having a problem, I'm trying to make it so that when someone calls 911 it will show the players marker, here's my code:
The problem is, it won't show faction 4 the players marker, I have this
in my script, could that be the problem? Because when I get rid of
everyone see's everyone on their minimap. Please help. Thank you.
pawn Code:
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4)
{
SetPlayerMarkerForPlayer(i,playerid,0xa5df00ff);
SetTimer("MarkersOff", 180000, 0);
}
}
}
pawn Code:
ShowPlayerMarkers(false);
pawn Code:
ShowPlayerMarkers(false);