Scripting/Server/Functions/GetCheatName

(v0.4.9+) The name of an anti-cheat detection, e.g. "health hack" (see onPlayerCheat).

Syntax

GetCheatName(detectionID)

Arguments

Returns

string

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "getcheatname" )
	{
		local result = GetCheatName( 0 );
		MessagePlayer( "GetCheatName returned: " + result, player );
	}
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Finding and counting entities

Categories: Server functions | Finding and counting entities