Skip to content

Commit 3fa4e2d

Browse files
authored
Add IsPlayerUsingOmp native
1 parent f3bff01 commit 3fa4e2d

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

omp_player.inc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3036,6 +3036,18 @@ native bool:AllowPlayerWeapons(playerid, bool:allow);
30363036
*/
30373037
native bool:ArePlayerWeaponsAllowed(playerid);
30383038

3039+
/**
3040+
* <library>omp_player</library>
3041+
* <summary>Check if the player is using the open.mp launcher.</summary>
3042+
* <param name="playerid">The ID of the player to check.</param>
3043+
* <seealso name="IsPlayerUsingOfficialClient" />
3044+
* <returns>
3045+
* <b><c>true</c></b>: The player is using open.mp launcher.<br />
3046+
* <b><c>false</c></b>: The player is not using open.mp launcher or the player specified does not exist.
3047+
* </returns>
3048+
*/
3049+
native bool:IsPlayerUsingOmp(playerid);
3050+
30393051
/*
30403052
30413053
,ad8888ba, 88 88 88 88

0 commit comments

Comments
 (0)