/location [id]
#8

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.
Reply


Messages In This Thread
/location [id] - by [LHT]Bally - 11.12.2011, 19:07
Re: /location [id] - by PlayHard - 11.12.2011, 19:16
Re: /location [id] - by NessaHD - 11.12.2011, 19:16
Re: /location [id] - by [LHT]Bally - 11.12.2011, 19:16
Re: /location [id] - by [LHT]Bally - 11.12.2011, 19:20
Re: /location [id] - by NessaHD - 11.12.2011, 19:24
Re: /location [id] - by [LHT]Bally - 11.12.2011, 19:30
Re: /location [id] - by PlayHard - 11.12.2011, 19:36
Re: /location [id] - by [LHT]Bally - 11.12.2011, 19:42
Re: /location [id] - by PlayHard - 11.12.2011, 19:42

Forum Jump:


Users browsing this thread: 2 Guest(s)