OnPlayerClickPlayer

OnPlayerClickPlayer

Description:
Callback OnPlayerClickPlayer is called when a player double-clicks on a player on the scoreboard.
Callback OnPlayerClickPlayer was added in 0.3a and will not work in earlier versions!
There is currently only one 'source' (0 - CLICK_SOURCE_SCOREBOARD). The existence of this argument suggests that more sources may be supported in the future.


Parameters:
(playerid, clickedplayerid, source)
int playerid The ID of the player that clicked on a player on the scoreboard.
int clickedplayerid The ID of the player that was clicked on.
int source The source of the player's click.


Return Values:
  • 1 - Will prevent other filterscripts from receiving this callback.
  • 0 - Indicates that this callback will be passed to the next filterscript.
  • It is always called first in filterscripts.


Examples:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
    new message[32];
    format(message, sizeof(message), "You clicked on player %d", clickedplayerid);
    SendClientMessage(playerid, 0xFFFFFFFF, message);
    return 1;
}


Related Functions
The following functions may be useful, as they are related to this function in one way or another.