There you go mate,
pawn Код:
CMD:location(playerid, params[])
{
new string[128], GuyID, Float:x, Float:y, Float:z;
new pName[MAX_PLAYER_NAME];
if(sscanf(params,"i",GuyID)) return SendClientMessage(playerid, -1, "/location [PlayerID/PlayerName]");
GetPlayerPos(GuyID, x, y, z);
GetPlayerName(GuyID, pName, sizeof(pName));
SetPlayerCheckpoint(playerid, x,y,z,15);
SetPlayerMarkerForPlayer(playerid, GuyID, 0xFF0000FF );
format(string, sizeof(string),"%s location is: %f, %f, %f.",pName, x, y, z);
SendClientMessage(playerid, -1, string);
return 1;
}
I scripted it, hope it works ^^
EDIT: Okay I just tested it with my friend. It works ^^.
By the way, I need you to put this
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
DisablePlayerCheckpoint(playerid);
return 1;
}
So whenever a player locate another player and when the player drives to the located guy - Entering checkpoint, it disables.