SA-MP Forums Archive
How would I update a SetPlayerMapIcon? - 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: How would I update a SetPlayerMapIcon? (/showthread.php?tid=305745)



How would I update a SetPlayerMapIcon? - Dokins - 23.12.2011

I.e /backup, How would I make it update say; every one second? I know about timers etc, if someone could just explain to me.

+ rep for best answer.


Re: How would I update a SetPlayerMapIcon? - IceCube! - 23.12.2011

SetPlayerMapIcon wont stay at the corner of the map for the player to follow. If you want a marker on the map the player can follow destrory and create player checkpoints so the player can follow it from his minimap.

pawn Код:
SetPlayerCheckPoint();



Re: How would I update a SetPlayerMapIcon? - kizla - 23.12.2011

under OnGameModeInit add

pawn Код:
SetTimer("UpdateMapIc", 1000, true); //call function "UpdateMapIc" evry 1 sec
and create public function with name "UpdateMapIc" and in there add things to update or evry ou want