If(sKeyHintText) Format(txt, sizeof(txt), " %s\n\n%s", txt, sKeyHintText) If(txt & client != target) Format(txt, sizeof(txt), " %N\n%s", target, txt) If( ! IsClientInGame(iTarget)) iTarget = 0 Įlse Format(txt, sizeof(txt), " %s%t", txt, "HUDProgress", iTarget, iPercents) Įlse if(iTimes) txt = 0 If(iBalance != - 1 & (iTeam = CS_TEAM_CT ? iDiff : -iDiff) >= iBalance)įormat(txt, sizeof(txt), " %s%t", txt, iTeam = 2 ? "HUDBalanceT" : "HUDBalanceCt") If(iTimes) FormatEx(txt, sizeof(txt), " %t\n", "HUDCounter", iTimes - iUses, iTimes) Move plugins from the parent directory to this one to disable a plugin and vice-a-versa. plugins/disabled: Plugins in this sub-folder wont be loaded. Plugins will also be reloaded on mapchange if their file has changed. Stock void PrepareMark( ConVar cvar, const int type)Ĭvar. /plugins: All plugins (.smx files) in this directory will be loaded automatically when sourcemod starts. Public void CVarChanged_MarkAny( ConVar cvar, const char oldValue, const char newValue) Public void CVarChanged_MarkCT( ConVar cvar, const char oldValue, const char newValue) Public void CVarChanged_MarkT( ConVar cvar, const char oldValue, const char newValue) Public void CVarChanged_Worst( ConVar cvar, const char oldValue, const char newValue)
Public void CVarChanged_Best( ConVar cvar, const char oldValue, const char newValue)
Return ThrowNativeError( SP_ERROR_NATIVE, "Client %d is not connected", value) Return ThrowNativeError( SP_ERROR_NATIVE, "Invalid client index ( %d)", value) Public int Native_SetPlayerInfo( Handle plugin, int numParams) Return ThrowNativeError( SP_ERROR_NATIVE, "Invalid information type") Return ThrowNativeError( SP_ERROR_NATIVE, "Client %d is a bot", client) Ĭase RI_Revives : return iRevives Ĭase RI_Revived : return iRevived Ĭase RI_Percents : return iPercents Return ThrowNativeError( SP_ERROR_NATIVE, "Client %d is not connected", client) Return ThrowNativeError( SP_ERROR_NATIVE, "Invalid client index ( %d)", client) Public int Native_GetPlayerInfo( Handle plugin, int numParams) HFwd_PlayerReviving = CreateGlobalForward( "Revival_OnPlayerReviving", ET_Ignore, Param_Cell, Param_Cell, Param_CellByRef, Param_CellByRef, Param_CellByRef) Public APLRes AskPluginLoad2( Handle myself, bool late, char error, int err_max)įormatEx(error, err_max, "Plugin for CS:S and CS:GO only!") ĬreateNative( "Revival_GetPlayerInfo", Native_GetPlayerInfo) ĬreateNative( "Revival_SetPlayerInfo", Native_SetPlayerInfo) #define IS_CORE true // set to false if not needed modules supportĬOLOR = įProgress ĭescription = "Press and hold +USE above death place to respawn player", * The most current version of the plugin files avaiable there: