You are not logged in.

HSFighter

Administrator

  • "HSFighter" started this thread

Posts: 1,517

Location: Flensburg

Occupation: Industrieelektroniker

wcf.user.option.userOption53: Nein

  • Send private message

1

Saturday, February 4th 2012, 1:02pm

Prüfen ob Client ein BOT ist

Prüfen ob Client ein BOT ist:

PHP Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Funktion aufrufen:
if (!IsClientBot(client))
{
    // Ist ein Player
}else{
    // Ist ein BOT
}

// Funktion:
public bool:IsClientBot(client)
{
    // Get Steam ID
    decl String:SteamID[64];
    GetClientAuthString(clientSteamIDsizeof(SteamID));
    // Check if BOT
    if (!IsFakeClient(client) && !StrEqual(SteamID"BOT") && !StrEqual(SteamID"STEAM_ID_PENDING")) return false;
    return true;
}



-
Anti Cheat: www.smacbans.com
Kein direkter Support per PM (nur auf Anforderung)