SA-MP Forums Archive
SetPlayerMarkerForPlayer Need help - 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: SetPlayerMarkerForPlayer Need help (/showthread.php?tid=79825)



SetPlayerMarkerForPlayer Need help - Celson - 31.05.2009

I'm working on a TDM mode. And I wanna make it so you can see your allies marker on the radar but not your enemies.

I know that I have to enable ShowPlayerMarkers and to make the markers invisible I gotta use SetPlayerMarkerForPlayer(i,playerid, ( GetPlayerColor( 1 ) & 0xFFFFFF00 ) );

But I'm having trouble putting a working script together. Anybody got a .pwn file that has what I am attempting to do? Or could someone some how help me with this problem?


Re: SetPlayerMarkerForPlayer Need help - MenaceX^ - 31.05.2009

Do you check the teams? like
TEAM1[playerid] and TEAM2[playerid]?