OnPlayerClickPlayer

From SA-MP Wiki

Jump to: navigation, search

OnPlayerClickPlayer


Warning: This is a new callback working since SA-MP 0.3. It won't work in previous versions.


Triggered when a player clicks on another player's name.


Parameters:
(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;
}