OnPlayerClickPlayer
From SA-MP Wiki
(Difference between revisions)
Revision as of 22:13, 30 January 2014 Smithy (Talk | contribs) ← Previous diff |
Revision as of 05:08, 2 February 2014 Connor Mead (Talk | contribs) Next diff → |
||
Line 28: | Line 28: | ||
[[de:OnPlayerClickPlayer]] | [[de:OnPlayerClickPlayer]] | ||
+ | [[fr:OnPlayerClickPlayer]] | ||
[[ru:OnPlayerClickPlayer]] | [[ru:OnPlayerClickPlayer]] |
Revision as of 05:08, 2 February 2014
Description:
Called when a player double-clicks on a player on the scoreboard.
(playerid, clickedplayerid, source)
playerid | The ID of the player that clicked on a player on the scoreboard. |
clickedplayerid | The ID of the player that was clicked on. |
source | The source of the player's click. |
Note | 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. |
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 might be useful, as they're related to this callback in one way or another.
- OnPlayerClickTextDraw: Called when a player clicks on a textdraw.