Skip to content
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Fixes:
The latest example of setting public OnCheatDetected in your gamemode:

```pawn
forward OnCheatDetected(playerid, ip_address[], type, code);
public OnCheatDetected(playerid, ip_address[], type, code)
Comment thread
NexiusTailer marked this conversation as resolved.
forward OnCheatDetected(playerid, AC_CONST ip_address[], type, code);
public OnCheatDetected(playerid, AC_CONST ip_address[], type, code)
{
if(type) BlockIpAddress(ip_address, 0);
else
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ It also simplifies the process of translation of anticheat into other languages
<details>
<summary>Click to expand the list</summary>

**public OnCheatDetected(playerid, ip_address[], type, code)**
**public OnCheatDetected(playerid, AC_CONST ip_address[], type, code)**
> Called when triggers one of the anti-cheats
> * `playerid` - The ID of the cheater
> * `ip_address[]` - IP-address of the cheater
> * `AC_CONST ip_address[]` - IP-address of the cheater
> * `type` - Type of cheating (when `0` it returns the ID, when `1` - IP)
> * `code` - The code (ID) of the anti-cheat
> * This callback does not handle returns
Expand Down
Loading