

Public Action : AddCasterSteamID_Cmd(args) Check for typos and let the player get fully connected.") ReplyToCommand(client, "Couldn't find Steam ID. ReplyToCommand(client, "Registered %N as a caster", target) If ( GetClientAuthString(target, buffer, sizeof(buffer))) If (target > 0) // If FindTarget fails we don't need to print anything as it prints it for us! New target = FindTarget(client, buffer, true, false) PrecacheSound( "/npc/pilot/radiofinale08.wav") PrecacheSound( "/player/survivor/voice/mechanic/ellisinterrupt07.wav") PrecacheSound( "/level/loud/climber.wav") PrecacheSound( "/common/bugreporter_failed.wav") PrecacheSound( "/commentary/com-welcome.wav") PrecacheSound( "/weapons/defibrillator/defibrillator_use.wav") GetConVarString(l4d_ready_live_sound, liveSound, sizeof(liveSound)) RegAdminCmd( "sm_initlive", InitLive_Cmd, ADMFLAG_ROOT) RegAdminCmd( "sm_initready", InitReady_Cmd, ADMFLAG_ROOT) who's allowed to self-register as a caster") RegServerCmd( "sm_add_caster_id", AddCasterSteamID_Cmd, "Used for adding casters to the whitelist - i.e. This should be in confogl_off.cfg or equivalent for your system") RegServerCmd( "sm_resetcasters", ResetCaster_Cmd, "Used to reset casters between matches. RegConsoleCmd( "sm_cast", Cast_Cmd, "Registers the calling player as a caster so the round will not go live unless they are ready") RegConsoleCmd( "sm_return", Return_Cmd, "Return to a valid saferoom spawn if you get stuck during an unfrozen ready-up period") RegConsoleCmd( "sm_unready", Unready_Cmd, "Mark yourself as not ready if you have set yourself as ready") RegConsoleCmd( "sm_toggleready", ToggleReady_Cmd, "Toggle your ready status") RegConsoleCmd( "sm_ready", Ready_Cmd, "Mark yourself as ready for the round to go live") RegConsoleCmd( "sm_notcasting", NotCasting_Cmd, "Deregister yourself as a caster or allow admins to deregister other players") RegConsoleCmd( "sm_show", Show_Cmd, "Shows a hidden ready-up panel") RegConsoleCmd( "sm_hide", Hide_Cmd, "Hides the ready-up panel so other menus can be seen") RegConsoleCmd( " \x73 \圆d \x5f \圆2 \圆f \圆e \圆5 \x73 \圆1 \x77", Secret_Cmd, "Every player has a different secret number between 0-1023") RegAdminCmd( "sm_fs", ForceStart_Cmd, ADMFLAG_BAN, "Forces the round to start regardless of player ready status. RegAdminCmd( "sm_forcestart", ForceStart_Cmd, ADMFLAG_BAN, "Forces the round to start regardless of player ready status.

RegAdminCmd( "sm_caster", Caster_Cmd, ADMFLAG_BAN, "Registers a player as a caster so the round will not go live unless they are ready") Z_max_player_zombies = FindConVar( "z_max_player_zombies") Survivor_limit = FindConVar( "survivor_limit") HookEvent( "player_team", PlayerTeam_Event) ĭirector_no_specials = FindConVar( "director_no_specials") HookEvent( "round_start", RoundStart_Event) HookConVarChange(l4d_ready_survivor_freeze, SurvFreezeChange) L4d_ready_warp_team = CreateConVar( "l4d_ready_warp_team", "1", "Should we warp the entire team when a player attempts to leave saferoom?") L4d_ready_chuckle = CreateConVar( "l4d_ready_chuckle", "0", "Enable random moustachio chuckle during countdown") L4d_ready_live_sound = CreateConVar( "l4d_ready_live_sound", "buttons/blip2.wav", "The sound that plays when a round goes live") L4d_ready_enable_sound = CreateConVar( "l4d_ready_enable_sound", "1", "Enable sound during countdown & on live") L4d_ready_delay = CreateConVar( "l4d_ready_delay", "5", "Number of seconds to count down before the round goes live.", FCVAR_PLUGIN, true, 0.0) L4d_ready_max_players = CreateConVar( "l4d_ready_max_players", "12", "Maximum number of players to show on the ready-up panel.", FCVAR_PLUGIN, true, 0.0, true, MAXPLAYERS + 1.0) When unfrozen they are unable to leave the saferoom but can move freely inside", FCVAR_PLUGIN, true, 0.0, true, 1.0) L4d_ready_survivor_freeze = CreateConVar( "l4d_ready_survivor_freeze", "1", "Freeze the survivors during ready-up. L4d_ready_disable_spawns = CreateConVar( "l4d_ready_disable_spawns", "0", "Prevent SI from having spawns during ready-up", FCVAR_PLUGIN, true, 0.0, true, 1.0) L4d_ready_cfg_name = CreateConVar( "l4d_ready_cfg_name", "", "Configname to display on the ready-up panel", FCVAR_PLUGIN | FCVAR_PRINTABLEONLY) LiveForward = CreateGlobalForward( "OnRoundIsLive", ET_Event) ĬreateConVar( "l4d_ready_enabled", "1", "This cvar doesn't do anything, but if it is 0 the logger wont log this game.", FCVAR_PLUGIN, true, 0.0, true, 1.0) Public APLRes : AskPluginLoad2( Handle :myself, bool :late, String :error, err_max)ĬreateNative( "AddStringToReadyFooter", Native_AddStringToReadyFooter) ĬreateNative( "IsInReady", Native_IsInReady) ĬreateNative( "IsClientCaster", Native_IsClientCaster) ĬreateNative( "IsIDCaster", Native_IsIDCaster) Description = "New and improved ready-up plugin.",
