OnPlayerClickPlayer
From SA-MP Wiki
OnPlayerClickPlayer
Warning: This callback was added in SA-MP version 0.3. It is not available in previous versions.
Triggered when a player clicks on another player's name.
(playerid, clickedplayerid, source)
| playerid | The ID of the player that clicked the name |
| clickedplayerid | The ID of the player whose name was clicked |
| source | The source ID of where the playerid clicked on the name of the other player |
public OnPlayerClickPlayer(playerid, clickedplayerid, source) { new message[128]; format(message, 128, "You clicked on player %d", clickedplayerid); SendClientMessage(playerid, 0xFFFFFFFF, message); return 1; }
