Raised This Month: $115 Target: $400
 28% 

Deathrun Manager by xPaw v3.0.3 [13/02/2010]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   Alka (6)
xPaw
AMX Mod X Moderator
Join Date: Jul 2008
Old 09-29-2008 , 10:47   Deathrun Manager by xPaw v3.0.3 [13/02/2010]
Reply With Quote #1


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 !!
Attached Files
File Type: sma Get Plugin or Get Source (DeathrunManager.sma - 90181 views - 21.3 KB)
File Type: txt deathrun.txt (13.7 KB, 40034 views)
File Type: sma Get Plugin or Get Source (DRM_trigger_hurt_fix.sma - 58549 views - 1.6 KB)
__________________

Last edited by xPaw; 10-13-2012 at 07:02.
xPaw is offline
xPaw
AMX Mod X Moderator
Join Date: Jul 2008
Old 09-29-2008 , 12:06   Changelog
Reply With Quote #2

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
__________________

Last edited by xPaw; 10-13-2012 at 07:01.
xPaw is offline
Howdy!
Senior Member
Join Date: Feb 2007
Old 09-29-2008 , 12:19   Re: Deathrun Manager v1.0 [29/08/2008]
Reply With Quote #3

Another way of blocking radio commands

__________________
[IMG]http://img221.**************/img221/5608/howdyfinnishhq2.jpg[/IMG]
Howdy! is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-29-2008 , 12:30   Re: Deathrun Manager v1.0 [29/08/2008]
Reply With Quote #4

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.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Old 09-29-2008, 12:33
maplebest
This message has been deleted by maplebest. Reason: Nevermind
xPaw
AMX Mod X Moderator
Join Date: Jul 2008
Old 09-29-2008 , 12:35   Re: Deathrun Manager v1.0 [29/08/2008]
Reply With Quote #5

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
__________________
xPaw is offline
maplebest
BANNED
Join Date: May 2007
Location: Sweden, Sverige
Old 09-29-2008 , 12:38   Re: Deathrun Manager v1.0 [29/08/2008]
Reply With Quote #6

Thank you.

Last edited by maplebest; 10-02-2008 at 12:58.
maplebest is offline
xPaw
AMX Mod X Moderator
Join Date: Jul 2008
Old 09-29-2008 , 12:40   Re: Deathrun Manager v1.0 [29/08/2008]
Reply With Quote #7

maplebest no problem, just forget
__________________
xPaw is offline
bickuribox
Member
Join Date: Mar 2007
Old 09-29-2008 , 14:32   Re: Deathrun Manager v1.0 [29/08/2008]
Reply With Quote #8

Thank you !!!
bickuribox is offline
IneedHelp
Veteran Member
Join Date: Mar 2007
Location: Argentina
Old 09-29-2008 , 14:40   Re: Deathrun Manager v1.0 [29/08/2008]
Reply With Quote #9

Finally ! Good Job xPaw.
__________________
IneedHelp is offline
xPaw
AMX Mod X Moderator
Join Date: Jul 2008
Old 09-29-2008 , 15:20   Re: Deathrun Manager v1.0 [29/08/2008]
Reply With Quote #10

@Howdy!: not all radio commands will blocked, check in mine code, there all console blocking too
__________________
xPaw is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:30.


Powered by vBulletin®
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Theme made by Freecode