---
title: "OnPlayerClickPlayer | open.mp"
description: "This callback is called when a player double-clicks on a player on the scoreboard."
canonical: https://omp.itsneufox.com/docs/scripting/callbacks/OnPlayerClickPlayer
language: en
---

# OnPlayerClickPlayer

## Description

This callback is called when a player double-clicks on a player on the scoreboard.

| Name | Description |
| --- | --- |
| playerid | The ID of the player that clicked on a player on the scoreboard. |
| clickedplayerid | The ID of the player that was clicked on. |
| CLICK\_SOURCE:source | The [source](https://omp.itsneufox.com/docs/scripting/resources/clicksources) of the player's click. |

## Returns

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

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

## Notes

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.

## Related Callbacks

The following callbacks might be useful, as they're related to this callback in one way or another.

-   [OnPlayerClickTextDraw](https://omp.itsneufox.com/docs/scripting/callbacks/OnPlayerClickTextDraw): This callback is called when a player clicks on a textdraw.

## Related Resources

-   [Click Sources](https://omp.itsneufox.com/docs/scripting/resources/clicksources)
