Raised This Month: $51 Target: $400
 12% 

Deathmatch Information All-In-One. 0.1a update


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
wangbochiang
Member
Join Date: Aug 2006
Location: Taiwan - Taichung
Old 03-08-2013 , 01:35   Deathmatch Information All-In-One. 0.1a update
Reply With Quote #1

If there have any BUGs or Suggestion, Please Contact me(iMessage friendly)
I'm having long-term medical treatment about my headache so I might won't be here often


Since I stop playing PUG,
I spent alot of time on CSDM server.

but I hate radar display when FFA mod is on,
So I decide to write a plugin about CSDM information.

After all this blablabla.

CVAR

diaio_enable "1" <- Dis/Enable Plugins. def: 1
diaio_minlead "4" <- Leader Min Player. def: 4
diaio_addhealth "20" <- Kill add HP. 0 to close. def: 20
diaio_maxfrags "100" <- Max Frags to change map def: 100
* This will use basic "amx_nextmap" map name



Here is this plugins will do(basic):
1. personal killStreak and killstreak record.
2. frags per minute.(raw output, so it will be much accurate after play more time.)
3. headshot count.
4. Acc via StatsX
5. Frags Leader
6. Timeleft / The time
7. Kill add HP
8. Max Frags change map
9. Skillpoint. kill +1 dead -1 hs +2.

There is much more function about this plugins,


This is when I test plugin and take the picture about display.
not quite right but that will be most of this plugin do.
due to waiting CSDM update, I test it on normal matching with csdm_amxx.dll with BOT




I highly recommend use this plugin with:

1. HUD Customizer http://forums.alliedmods.net/showthread.php?p=680121
* Left-Top Section will be cover via radar, please close it.

2. Bullet Damage with Director Hud Message and HudMessage 2.0 https://forums.alliedmods.net/showthread.php?t=151190

* HUD Customizer will also remove damage alert, so I use this to display damage and display received damage.
also if you want to change team-mate damage to normal (FFA MOD)
Change the plugin in "LINE: 124"
PHP Code:
    if( Attacker != Victim && get_user_teamAttacker ) != get_user_teamVictim ) ) //TDM MOD 
to
PHP Code:
    if( Attacker != Victim /*&& get_user_team( Attacker ) != get_user_team( Victim )*/ //FFA MOD 

Changelog:

PHP Code:
03/08/2013 0.1 Release
03
/08/2013 0.1a Fix get_player / static / get_pcvar_string 

Any Suggestion Are Welcome:
This Project is on GitHub!:
https://github.com/limeless/DeathMatch-Info-AIO
Attached Thumbnails
Click image for larger version

Name:	299860_606668266014056_2017741486_n.jpg
Views:	1522
Size:	54.8 KB
ID:	116846  
Attached Files
File Type: sma Get Plugin or Get Source (diaio.sma - 972 views - 7.4 KB)
__________________
Catch me on : @twitter

Last edited by wangbochiang; 04-04-2013 at 12:30.
wangbochiang is offline
Send a message via MSN to wangbochiang Send a message via Yahoo to wangbochiang Send a message via Skype™ to wangbochiang
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-08-2013 , 01:58   Re: Deathmatch Information All-In-One.
Reply With Quote #2

Use get_players instead of looping all players possible indexes (so you can retrieved connected human alive players directly)
Use pcvar for all cvars (amx_nextmap)
Don't use static when it is not worth
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
wangbochiang
Member
Join Date: Aug 2006
Location: Taiwan - Taichung
Old 03-08-2013 , 01:59   Re: Deathmatch Information All-In-One.
Reply With Quote #3

Quote:
Originally Posted by ConnorMcLeod View Post
Use get_players instead of looping all players possible indexes (so you can retrieved connected human alive players directly)
Use pcvar for all cvars (amx_nextmap)
Don't use static when it is not worth
Okay, Im on my way to hospital, Will Fix ASAP after I got home.
__________________
Catch me on : @twitter
wangbochiang is offline
Send a message via MSN to wangbochiang Send a message via Yahoo to wangbochiang Send a message via Skype™ to wangbochiang
wangbochiang
Member
Join Date: Aug 2006
Location: Taiwan - Taichung
Old 03-08-2013 , 03:31   Re: Deathmatch Information All-In-One.
Reply With Quote #4

Quote:
Originally Posted by ConnorMcLeod View Post
Use get_players instead of looping all players possible indexes (so you can retrieved connected human alive players directly)
Use pcvar for all cvars (amx_nextmap)
Don't use static when it is not worth
if I change it like this:
PHP Code:
get_players(playersplayercount"c");
    for (
i=0i<playercounti++) 
    {
        
player players[i]
          
//..... 
is there any different between

PHP Code:
for(new i=0;i<maxplayer;i++) 
and

PHP Code:
for(i=0i<playercount;i++) 
I think those two are the same.

if I use get_player I don't have to add
PHP Code:
if(!is_user_bot(i) && is_user_alive(i
?
__________________
Catch me on : @twitter

Last edited by wangbochiang; 03-08-2013 at 03:33.
wangbochiang is offline
Send a message via MSN to wangbochiang Send a message via Yahoo to wangbochiang Send a message via Skype™ to wangbochiang
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-08-2013 , 03:33   Re: Deathmatch Information All-In-One.
Reply With Quote #5

They are not the same. maxplayer is always the max slots where as playercount is the total number of players (matching the flags) in the server
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
wangbochiang
Member
Join Date: Aug 2006
Location: Taiwan - Taichung
Old 03-08-2013 , 03:35   Re: Deathmatch Information All-In-One.
Reply With Quote #6

Quote:
Originally Posted by YamiKaitou View Post
They are not the same. maxplayer is always the max slots where as playercount is the total number of players (matching the flags) in the server
okay, now I totally understand what's different between those, thanks!
__________________
Catch me on : @twitter
wangbochiang is offline
Send a message via MSN to wangbochiang Send a message via Yahoo to wangbochiang Send a message via Skype™ to wangbochiang
Old 03-08-2013, 04:02
wangbochiang
This message has been deleted by wangbochiang. Reason: Nvm I fix it.
FanatikSVK
Member
Join Date: Aug 2012
Location: Slovakia
Old 03-08-2013 , 05:34   Re: Deathmatch Information All-In-One. 0.1a update
Reply With Quote #7

Good job men
__________________
FanatikSVK is offline
Send a message via Skype™ to FanatikSVK
quilhos
Veteran Member
Join Date: Jun 2010
Old 03-08-2013 , 11:47   Re: Deathmatch Information All-In-One. 0.1a update
Reply With Quote #8

Nice idea son xb, rly nice.
__________________
ELO RATING SYSTEM - SQL [COMPLETE]
Quote:
Originally Posted by Liverwiz View Post
DDDRRRRAAAAMMMMAAAAA!!!???

Put this shit on pause while i go get some popcorn!!
quilhos is offline
villios
Member
Join Date: Nov 2009
Old 02-27-2014 , 16:33   Re: Deathmatch Information All-In-One. 0.1a update
Reply With Quote #9

Good plugin. It's just that when suicide I disconnects and get this in my consol:


Host_Error: WriteDest_Parm: not a client

How to fix this problem?=/
villios is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 04-07-2020 , 08:05   Re: Deathmatch Information All-In-One. 0.1a update
Reply With Quote #10

Quote:
Originally Posted by villios View Post
Good plugin. It's just that when suicide I disconnects and get this in my consol:


Host_Error: WriteDest_Parm: not a client

How to fix this problem?=/
Also amx_nextmap is not a cvar, therefore the cvar pointer will be invalid.

If you decide to fix these problems PM me.
Unapproved for now.
__________________
HamletEagle is offline
Reply



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 13:38.


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