[Help] Markers - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] Markers (
/showthread.php?tid=92029)
[Help] Markers -
Oi! - 18.08.2009
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:
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);
}
}
}
The problem is, it won't show faction 4 the players marker, I have this
pawn Code:
ShowPlayerMarkers(false);
in my script, could that be the problem? Because when I get rid of
pawn Code:
ShowPlayerMarkers(false);
everyone see's everyone on their minimap. Please help. Thank you.
Re: [Help] Markers -
Oi! - 18.08.2009
Anyone?
Re: [Help] Markers -
SpiderPork - 18.08.2009
Remove ShowPlayerMarkers(false);
Then set the player's colour for everyone to invisible when they spawn.
Re: [Help] Markers -
Oi! - 18.08.2009
Well see the problem with that is, all my families, factions etc have different color names.