AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Deathrun Manager by xPaw v3.0.3 [13/02/2010] (https://forums.alliedmods.net/showthread.php?t=78197)

xPaw 09-29-2008 09:47

Deathrun Manager by xPaw v3.0.3 [13/02/2010]
 
14 Attachment(s)
http://i.imgur.com/VR4DV.jpg
Deathrun Manager
By xPaw

Logo by Kryzu

.: Description :.
Deathrun Manager for cs and cz, well you cant play deathrun in other games :)

This plugin manages your deathrun server by doing the following things:
Will automatically transfer one RANDOM person from the Counter-Terrorists team over to the Terrorists
Will turn off/on radio commands (with cvar)
Will turn off/on spraying (for those noobs who use spray on breakables)
Will restart round if no terrorist detected
Will check every 15 secs & on player disconnect (if a Terrorist disconnects then will restart round)
Will remove players weapons on new round.

Life System
You will gain one life point when you will kill enemy, This life point will be spend when you die.
.: Cvars :.
< 1 = on || 0 = off >

Turn on/off the plugin
deathrun_toggle 1/0 <default: 1>

Turn on/off the spray blocker
deathrun_spray 1/0 <default: 1>

Turn on/off the radio commands blocker
deathrun_radio 1/0 <default: 1>

Turn on/off giving USP for CT's
deathrun_giveusp 1/0 <default: 1>

Turn on/off removing buyzone
deathrun_removebz 1/0 <default: 1>

Turn on/off remove money and timer from hud
deathrun_hidehud 1/0 <default: 1>

Turn on/off blocking money, if yes, player always will have 0$
deathrun_blockmoney 1/0 <default: 1>

Block or enable 'kill' command for CTs (1 - blocked, 0 - enabled)
deathrun_blockkill 1/0 <default: 1>

Turn on/off the semiclip
deathrun_semiclip 1/0 <default: 1>

Turn on/off the life system, if set to 2, terrorist for winning team will get also 1 life point.
deathrun_lifesystem 2/1/0 <default: 1>

If 1 then gamename will be changed to 'Deathrun v3.0'
deathrun_gamename 1/0 <default: 1>

Turn on/off block no fall damage for terrorists
deathrun_terrnfd 1/0 <default: 1>
.: What included in my DRM? :.
  • Semiclip by danielkza
  • Remove BuyZones by VEN
  • Game NameChanger
  • Spray Blocker
  • Radio Commands Blocker
  • No Roundtimer & Money in HUD

.: Credits :.
  • Grim - Original code
  • coderiz - His tp fix plugin, used it for trigger_hurt.
  • danielkza - The Semiclip code
  • TeddyDesTodes - Original Life System idea.

.: Recommended Plugins :.
.: Changing Messages prefixes :.
The standart prefix for chat messages is [Deathrun], but you can change it. Line 23. Change [Deathrun] to what you want :)
PHP Code:

// Messages prefix
new const g_szPrefix[ ] = "[Deathrun]"

And recompile the plugin !
.: Changing Fake Player's Name :.
Line 20: Change DRM Fake Player to what you want :)
PHP Code:

// Bot name
new const g_szBotName[ ] = "DRM Fake Player"

And recompile the plugin !
.: Removing Fake Player :.
You simply need to comment line 17.

PHP Code:

#define FAKE_PLAYER 

to
PHP Code:

// #define FAKE_PLAYER 

And recompile the plugin, if you removed fakeplayer, do not complain about timeleft resets !!

xPaw 09-29-2008 11:06

Changelog
 
Changelog
"v5.0".applyValveTime()
  • ???
v3.0.3
  • Fixed life system cvar working wrong
  • Small optimization in semiclip code
v3.0.2
  • Fixed spraying at roundstart even when spray is blocked
v3.0.1
  • Fixed not-killing bot when lifes system was disabled
v3.0
  • Bot wont join anymore if on map only 1 spawn for terrs, prevent dying
  • Blocked death msg of fake player
  • Saved many memory in semiclip method, and in other parts too
  • Added 'No terrorists fall damage'
  • Added Thinking entity instead of task for terrorist checking
  • When radios is blocked, the menu doesnt show anymore
  • Fixed weapons pickuping, happened what you can't pickup weapons sometimes
  • Added define for bot, now you can disable it by commenting 1 line, read below
  • Added g_szPrefix, now you can change [Deathrun] easily, read below
Older versions

Howdy! 09-29-2008 11:19

Re: Deathrun Manager v1.0 [29/08/2008]
 
Another way of blocking radio commands

:wink:

Exolent[jNr] 09-29-2008 11:30

Re: Deathrun Manager v1.0 [29/08/2008]
 
1.
Code:
public client_connect(id)     set_user_info(id, "_vgui_menus", "0");
Instead, hook event "VGUIMenu" like you did "ShowMenu".


2.
Code:
public menuteam(id)     client_cmd(id, "slot2"); public menuclass(id)     client_cmd(id, "slot5");

Instead, block the other menus that you hooked with PLUGIN_HANDLED, and here, do:
Code:
public menuteam(id) {     engclient_cmd(id, "jointeam", "2");     engclient_cmd(id, "joinclass", "5");     return PLUGIN_HANDLED; public menuclass(id) {     engclient_cmd(id, "joinclass", "5");     return PLUGIN_HANDLED; }


3. Usually in DeathRun servers, the Terrorist is random for first round, then the Terrorist is the CT that kills the Terrorist. If no CT wins, then the Terrorist stays.
You should add a cvar to be random or to follow CT actions.

xPaw 09-29-2008 11:35

Re: Deathrun Manager v1.0 [29/08/2008]
 
2nd changed, 3nd i dont know will i add it or no
1st right i hooked ?
PHP Code:

    register_event("ShowMenu""menuclass""b""4&CT_Select""4&Terrorist_Select");
    
register_event("ShowMenu""menuteam""b""4&Team_Select_Spect""4&Team_Select""4&IG_Team_Select");
    
register_event("VGUIMenu""menuclass""b""4&CT_Select""4&Terrorist_Select");
    
register_event("VGUIMenu""menuteam""b""4&Team_Select_Spect""4&Team_Select""4&IG_Team_Select"); 

EDIT: maplebest sry i was boored and ill forgot to change

maplebest 09-29-2008 11:38

Re: Deathrun Manager v1.0 [29/08/2008]
 
Thank you.

xPaw 09-29-2008 11:40

Re: Deathrun Manager v1.0 [29/08/2008]
 
maplebest no problem, just forget

bickuribox 09-29-2008 13:32

Re: Deathrun Manager v1.0 [29/08/2008]
 
Thank you !!!

IneedHelp 09-29-2008 13:40

Re: Deathrun Manager v1.0 [29/08/2008]
 
Finally ! Good Job xPaw.

xPaw 09-29-2008 14:20

Re: Deathrun Manager v1.0 [29/08/2008]
 
@Howdy!: not all radio commands will blocked, check in mine code, there all console blocking too


All times are GMT -4. The time now is 08:13.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.