public Plugin myinfo = { name = "", author = PLUGIN_AUTHOR, description = "", version = PLUGIN_VERSION, url = "" };
/* GLOBAL VARIABLES */ bool g_bSetClanTag[MAXPLAYERS+1] = { false, ... }; // false by default char g_szSteamID[MAXPLAYERS+1][100];
public void OnPluginStart() { HookEvent("player_spawn", OnClientSpawn); }
public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max) { EngineVersion game = GetEngineVersion(); if(game != Engine_CSGO && game != Engine_CSS) { strcopy(error, err_max, "Plugin only supports Left 4 Dead 2."); return APLRes_SilentFailure; } return APLRes_Success; }
public void OnClientPostAdminCheck(int client) { if( client > 0 && client <= MaxClients && IsClientInGame(client) &&!IsFakeClient(client)) { // the check for admin flag type occur here.. not on OnClientSpawn() // the check for admin flag type occur here.. not on OnClientSpawn() // the check for admin flag type occur here.. not on OnClientSpawn() // the check for admin flag type occur here.. not on OnClientSpawn()