Raised This Month: $ Target: $400
 0% 

No Kill Jacking


Post New Thread Reply   
 
Thread Tools Display Modes
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 07-18-2005 , 22:16  
Reply With Quote #11

What is _: ?
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
nitricacid
Member
Join Date: Jul 2005
Location: there
Old 07-19-2005 , 00:03  
Reply With Quote #12

what if Red shoots blue for 40 dmg then red dies but blue lives, does red get .4 kills?
nitricacid is offline
Send a message via AIM to nitricacid
Cryonic
Senior Member
Join Date: Aug 2004
Location: Sweden..... (XCoder)
Old 07-19-2005 , 00:41  
Reply With Quote #13

Can you make an option / version that simply gives one kill to the person that dealt most dagame?

Example:

Player 1 does 80 damage
Player 2 does 20 damage

= Player 1 gets the kill

Example:

Player 1 does 70 damage
Player 2 does 70 damage

= Player 2 gets the kill for making the last hit

.. something like that...
Cryonic is offline
Front Line
Senior Member
Join Date: Jan 2005
Old 07-19-2005 , 01:31  
Reply With Quote #14

i don't lik the intergers part but the Damage made is good...

5.
__________________
My plugins...

Are all Here...Click Me
Front Line is offline
genesis
Senior Member
Join Date: Oct 2004
Location: CALIFORNIA, USA
Old 07-19-2005 , 07:39  
Reply With Quote #15

@v3x _: is convert to integer so in this case i want to force a float to be an integer

@all I will look into making a secondary option to have it give just one kill to the person that does the most dmg to the person during the round if he dies.
__________________
CS 1.6 cali.radclan.net:27015
I have a feeling we're not in cs anymore.
I take pride that all my AMXX plugins were writen in notepad.
genesis is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 07-19-2005 , 14:03  
Reply With Quote #16

Code:
L 07/20/2005 - 16:04:01: [AMXX] Native error in "set_user_frags" on line 41 (file "nkj_115.sma").
L 07/20/2005 - 16:04:01: [FUN] Player out of range (0)
Happens every now and then Cant say much besides that. THankx
__________________
bmann_420 is offline
DahVid
Senior Member
Join Date: Jun 2005
Old 07-19-2005 , 14:08  
Reply With Quote #17

Try this:


Code:
#include <amxmodx> #include <amxmisc> #include <cstrike> #include <fun> new g_realKills[33] public plugin_init() {     register_plugin("No Kill Jacking","1.3","Genesis")     register_event("Damage", "event_damage", "b", "2!0") } public event_damage(id) {     if(is_user_connected(id)) {     new weapon, bodypart     new enemy = get_user_attacker(id,weapon,bodypart)           new damage = read_data(2)     if(enemy == id) return PLUGIN_CONTINUE     if(weapon == 18)     {         if(damage > 100)         {             g_realKills[enemy] += 100         }         else         {             g_realKills[enemy] += _:damage          }     }     else     {         g_realKills[enemy] += _:damage     }             new adjust     adjust = _:(g_realKills[enemy] / 100)     set_user_frags(enemy, adjust)     return PLUGIN_CONTINUE } } public client_disconnect(id) {     g_realKills[id] = 0 }
DahVid is offline
genesis
Senior Member
Join Date: Oct 2004
Location: CALIFORNIA, USA
Old 07-19-2005 , 14:44  
Reply With Quote #18

ok, I fixed the glitch:
Quote:
L 07/20/2005 - 16:04:01: [AMXX] Native error in "set_user_frags" on line 41 (file "nkj_115.sma").
L 07/20/2005 - 16:04:01: [FUN] Player out of range (0)
This happens when someone falls for instance, the enemy is 0, which means no enemy(ie self-dmg / bomb) something like that, anyhows its fixed in the main download.
__________________
CS 1.6 cali.radclan.net:27015
I have a feeling we're not in cs anymore.
I take pride that all my AMXX plugins were writen in notepad.
genesis is offline
DahVid
Senior Member
Join Date: Jun 2005
Old 07-19-2005 , 14:47  
Reply With Quote #19

+karma.
Good idea man...
DahVid is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 07-19-2005 , 23:34  
Reply With Quote #20

Coo, man TY. i have yet to see it work, unless it is and i dont notice. but small numbers i dont keep track of
__________________
bmann_420 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 00:23.


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