SA-MP Forums Archive
Player Marker timer - 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: Player Marker timer (/showthread.php?tid=640164)



Player Marker timer - Maker52130 - 28.08.2017

Hi guys, im new scripteur and i need help.

I want the "player markers" to be disabled and then activated a few seconds before being re-disabled.
With a timer.

Sorry for my bad english im French.

I have script that but did not working :

Код:
forward visible(playerid);
public visible(playerid)
{
	SetNameTagDrawDistance(100.0);
  	ShowPlayerMarkers(PLAYER_MARKERS_MODE_GLOBAL);
  	SCM(playerid, -1, "> Joueurs visibles sur la minimap");
}



Re: Player Marker timer - rt-2 - 29.08.2017

ShowPlayerMarkers is for all players not just one.

Check out https://sampwiki.blast.hk/wiki/SetPlayerMarkerForPlayer

but you can also use SetPlayerColor and put the alpha to 00 and FF, that's what I suggest here if you don't want to make a loop...

rt-2


Re: Player Marker timer - Maker52130 - 29.08.2017

Yeah thanks bro