RSSy MYGO.pl Opublikowano Maj 24, 2020 o 00:36 RSSy Udostępnij Opublikowano Maj 24, 2020 o 00:36 About I wrote this plugin for my Deathrun server, preventing the Activator from killing himself in various ways. Was pretty messy, so I thought I'd rewrite it. I think I made it as efficiently as possible, but this is my first plugin so... If you have any recommendations on how to improve my code, definitely share! :) What will this plugin block? Kill Explode Jointeam ConVars sm_blockSuicide_enabled (1) - Enable or disable this plugin sm_allowOverride (1) - Allow or disallow overrides for suicides and team switches? sm_blockKillTeam (0) - Which team to block kill for? (0 = No team, 1 = Team RED, 2 = TEAM BLUE, 3 = Both teams) sm_blockExplodeTeam (0) - Which team to block explode for? (0 = No team, 1 = Team RED, 2 = TEAM BLUE, 3 = Both teams) sm_blockSwitchTeam (0) - Which team to block switching teams for? (0 = No team, 1 = Team RED, 2 = TEAM BLUE, 3 = Both teams) sm_allowSpectate (1) - Allow or disallow switching to spectate? Overrides suicideandteamswitch_override By default the flag is "b" (admins). Compile Requirements Morecolors.inc Installation - Put the .smx into tf/addons/sourcemod/plugins folder - Put the plugin.blocksuicide.cfg in tf/cfg/sourcemod folder - Put the blockSuicide.phrases.txt in tf/addons/sourcemod/translations folder - Restart your server Changelog 24/05/2020 (v1.0) - Initial release. Notes You'll have to download the attached .zip file or .smx file, because the web compiler cannot compile due to the <morecolors> include. The .inc file has been included into the .zip. Attached Files blockSuicide.phrases.txt (444 Bytes) Get Plugin or Get Source (blockSuicide.sp - 6.1 KB) blockSuicide.smx (10.2 KB) plugin.blocksuicide.cfg (1.2 KB) Block Suicide & Switching Teams.zip (20.0 KB) Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi