Show a specific player on the map
#1

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
Reply
#2

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
Reply
#3

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

Easier. No need for timers or checkpoints.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)