# Mod Commands Sapp

#### General Commands

 Misc setcmd Set the name/level of the given command. Example: setcmd k kick this will change ‘k’ command to ‘kick’setcmd k 3 this will change ‘k’ (kick) command’s level to level 3 anticheat [enabled] Enables anticheat mode, when only clients with anticheat can play in the server. Only possible to use it from sapp’s init.txt, once it enabled, can’t be disabled until you restart the server. custom_sleep [value] Set the amount that the Halo thread Sleeps every cycle, to use the default speed set it to 0 (with the “33 pings”), default value is 8. Changing this value can improve reg, but very low values like 1 can cause low ping players desync. Note that this has no effect on physics processing or network traffic rate. say_prefix [enabled] Enable / Disable “** SERVER **” prefix on server messages msg_prefix You can set a custom prefix instead of ** SERVER **. Ex: msg_prefix “** SAPP ** ” (default), msg_prefix “” = no prefix cmdstart [character] This will set the character that used to run admin commands from the chat (if you have admin rights ofc), default is ‘\’For ex in the chat: \pl, \sv_kick 4, or \k 4 noob cmdstart1 [character] Secondary cmdstart, default is ‘/’ sapp_rcon [enabled] If enabled, only sapp admins can use the rcon, v1 admins with the default rcon password, v2 admins with their own password. Bruteforce protection is always active even if this function is disabled. sapp_mapcycle [enabled] If enabled, sapp will use the mapcycle you specified in the mapcycle.txt, read more on the “Sapp Mapcycle” page. collect_aliases [enabled] If this function is enabled Sapp will track what other names a player used in your server, IF he/she has valid CD-Key. This function is NOT enabled by default. alias Displays all the names that the player used in your server. Note that you have to enable collecting aliases first with the collect_aliases 1 command (put it to the sapp’s init.txt) otherwise this function won’t work. ping_kick [ping] If player’s ping is higher than [ping] for about 20 seconds, he’s kicked. However, player who just joined the game and his ping is high for a while is not punished by this feature. Admins are not kicked, if [ping] is 0 then ping kicking is disabled. afk_kick [time] AFK players (unless they are admins) are kicked after a given period of inactivity (in seconds), if [time] is 0 then afk kicking is disabled. afks Displays inactivity periods (in seconds) of the players. disable_sj [enabled] Disables the usage of SightJacker for HAC users like in ScrimMode. scrim_mode [enabled] If enabled, no one can execute any naughty commands.Server sends a message to every player if this status is changed. You can also check it’s status with the info command. no_lead [enabled] Enables/disables the no_lead mode for everyone. You can check and change the state of leading with the lead command.If the admins didn’t enable no-lead mode, you can’t turn it on for yourself, but if they enabled it, everyone can disable this mod for themselves by typing lead 1 to the chat. Also, you can re-enable it with the lead 0 command. adminban [type] Type:0 Admin can kick/ban another admin. (default)Type:1 Admin can’t kick/ban another admin with higher level. Type:2 Admin can’t kick/ban another admin with higher or equal level. adminadd_samelevel [value] The value is 0 by default, if set to 1, admins can add other players as admin with the adminadd command with lower level than them, if value is set to 2, admins can add others as admin with lower or equal level. admindel_samelevel [value] The value is 0 by default, if set to 1, admins can delete other players as admin with the admindel command with lower level than them, if value is set to 2, admins can delete others as admin with lower or equal level. anticaps [enabled] OVERUSING CAPS LOCK IS PUNISHED WITH lowercase text antispam [type] Players, who spam the chat usually with spam-bot, will get type: 1 – textban (cd-key based), type: 2 – mute (ip-based) antihalofp [enabled] IP trying to connect to the server more than 8 times in a short time period will be added to IP banlist for 5 minutes. (recommended) anticamp [time(s)] [distance(m)] Raises event_camp ‘command’ event. For ex. anticamp 30 5 : if the distance between the player’s coordinates is less than 5m in the last 30 sec, it will raise event_camp event with the number of the kills he did while he was in this “camping stage”.Note: You walk about 3 Meter per second when moving forward at default speed. Example events: event_camp 3 ‘say $n “$name Please change your position!”‘ event_camp 4 ‘say $n “$name stop camping or you will be kicked!”‘ event_camp 5 ‘say * “Warning! $name will be kicked for camping!”‘ event_camp 6 ‘k$n Camping’ antiwarp [warp_num] Raises an event_warp after the player warped “warp_num” times. Recommended value: 5, 0 means this function is disabled.Example: sapp’s init.txt: antiwarp 5 events.txt: event_warp ‘kill $n;say$n “You were killed because you are warping.”‘ c4_ag [enabled] Players trying to C4 switch glitching will be kicked. map_skip [value] Players can type ‘skip’ to the chat to skip to the next map. The value is the % of the required votes to skip.Value can be between 40 and 100 or 0 to disable map skipping. skips Displays a list about players who voted for skip the current map. spawn_protection [time] Spawn Protection. For Example with spawn_protection 5 players will be invincible in the first 5 seconds (or till the first shot) after spawning.Value can be between 1 and 10 (and 0 to disable spawn protection) aimbot_ban [value] [type] Players will get scores for “suspect” movements. If a players score is higher than the aimbot_ban value, he/she will be banned =)Type -> 0 – Normal Ban, 1 – IP Ban (default), 2 – both, 3 – kick only Note that you WON’T get banned if you are shaking your camera like a retarded or killing 15 ppl in half second, etc. Value is between 2000 and 100000, recommended is 5000-10000. (The less the value, the faster the ban is but more risk for false positives.) aimbot_scores Displays aimbot scores of all players in the server. mapvote [enabled] Enables/disables map voting. See “Map Vote” page for more information. max_votes [number] Specify the amount of displayed mapvotes / round, default value is 5.Sapp now cycling the mapvotes, instead of showing all the 8-12+ in the same time. For ex. if the “max_votes” is 5, then the players only can vote for the first 5 options, and after the voted game ended, they can choose from the next 5 option in the end of the next round etc. change_password With this, v2 admins can change their own password. save_scores [enabled] If enabled, SAPP will save the player’s score of the current game, in case if he/she is lag out etc., the player wont lose his/her score/kills/assists/deaths log [enabled] Enable / Disable SAPP logging. log rotation [kb] Sets the size of the log file after it gets archived. Default value is 4096 (kb). log_name [name] You can specify custom log name. Note that name is without the “.log” file extension. log_note Writes a note into the SAPP log. gs_ping_fix [enabled] Fixes the bug that the servers behind a router didn’t have ping on the serverlist. packet_limit [amount] Gives basic DoS protection to the server. If the server receives more packets in 1 second than specified with “amount” Sapp automatically bans the IP. Minimum value is 256, default is 1024, 0 = disabled. full_ipban [enabled] If enabled, all packets from the banned IPs will be blocked, otherwise only join requests and server queries. This function is disabled by default, enabling it with a huge ipban list can cause the server lag and the pings increase. block_tc [enabled] If enabled players are always blocked from changing their team. sapp_console [enabled] Disables the sv_status spam and instead displays when a player joins/leaves or a new game starts unlock_console_log If enabled, unlock some stuff in the memory and console will be more “chatty” 😛 It will inform you from everything like player join, kill, betray, flag capture etc. (CE version only) chat_console_echo [enabled] If enabled, chat messages will shown in the console window. set_ccolor [value] Set the color of the console text (0-255), 0-15 with black background. Default is 7 (grey text on black) max_idle [time] If the server is idle for more than “time” seconds Sapp automatically restarts the mapcycle. Default is 60, 0 = disabled. inf Displays PlayerIndex, Name, IP and CD-Key Hash of the given players. ip Displays player’s IP, Rev DNS and CD-Key hash. d Displays some shitty info about the player. cpu Displays Processor brand string, and operating system version info. uptime Displays uptime of sapp.dll and operating system. beep Beeepp!!! (beep 😉 about :*