SA-MP Forums Archive
Show a specific player on the map - 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: Show a specific player on the map (/showthread.php?tid=598264)



Show a specific player on the map - Shovelizer - 10.01.2016

Hello SA-MP community!
I'd like to know if there's a way to show a specific player on the map for a specific person.
EXAMPLE(This is not what I want to do with my server but I saw this feature in a lot of servers):
a player types /find [ID] and the person's location is showed on the map.


-Thanks


Re: Show a specific player on the map - GTLS - 10.01.2016

Yes like:
Step 1:get player's Position whose you want to show on map.
PHP код:
new Float:XFloat:YFloat:Z;
GetPlayerPos(giveplayeridX,Y,Z); 
Step 2: Then SetPlayer's Checkpoint on map.
PHP код:
 SetPlayerCheckpoint(X,Y,Z); 
Tip: you can use Timer on OnPlayerUpdate to check Player's position every 2 or 3 seconds to chase him... basically its Good for RPing the Pursuit, so Other players can see Suspect's current location on Map.. Hope that solved your doubt


Re: Show a specific player on the map - Vince - 10.01.2016

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

Easier. No need for timers or checkpoints.