Raised This Month: $ Target: $400
 0% 

combined kills????


Post New Thread Reply   
 
Thread Tools Display Modes
flyeni6
Senior Member
Join Date: Jun 2006
Location: CAli
Old 05-28-2007 , 17:57   Re: combined kills????
Reply With Quote #11

o yea 1 more thing.

how do i block the kill if its a suicide
__________________

flyeni6 is offline
Send a message via AIM to flyeni6
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 05-28-2007 , 18:08   Re: combined kills????
Reply With Quote #12

afaik you can't block the deathmessage..
You would have to code your own deathhandling
__________________
regalis is offline
flyeni6
Senior Member
Join Date: Jun 2006
Location: CAli
Old 05-28-2007 , 18:29   Re: combined kills????
Reply With Quote #13

ahh fudge... k thx
__________________

flyeni6 is offline
Send a message via AIM to flyeni6
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 05-28-2007 , 18:53   Re: combined kills????
Reply With Quote #14

Suicide? For the purposes of typing 'kill' in console:

Code:
#include <amxmodx> #include <engine> public client_kill(id) {     return PLUGIN_HANDLED }

Last edited by Lee; 05-28-2007 at 18:56.
Lee is offline
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 05-28-2007 , 18:56   Re: combined kills????
Reply With Quote #15

Should this be the hook function from Deathmsg-event?
Have you tested this? ;)
__________________
regalis is offline
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 05-28-2007 , 18:59   Re: combined kills????
Reply With Quote #16

No, but the Function Wiki states that this forward will block the engine call should PLUGIN_HANDLED be returned. So in theory that is the entire code needed to block 'kill'.
Lee is offline
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 05-29-2007 , 03:49   Re: combined kills????
Reply With Quote #17

Ah i misunderstood suicide..0o
I thought about teamkill *lol*
That should work..but if he kills himself with a HE or worldspawn, this doesn'T work afaik.. ;)

greetz regalis
__________________
regalis is offline
flyeni6
Senior Member
Join Date: Jun 2006
Location: CAli
Old 05-29-2007 , 09:22   Re: combined kills????
Reply With Quote #18

Quote:
Originally Posted by regalis View Post
Ah i misunderstood suicide..0o
I thought about teamkill *lol*
That should work..but if he kills himself with a HE or worldspawn, this doesn'T work afaik.. ;)

greetz regalis
yea thats what im trying to do.
hmm... ill try to figure this out
__________________

flyeni6 is offline
Send a message via AIM to flyeni6
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 05-29-2007 , 09:53   Re: combined kills????
Reply With Quote #19

When you say "block", what are you trying to do? Are you attempting to prevent the kill from being counted in the small plugin I posted above or stop the person from dying in the first place..?
Lee is offline
flyeni6
Senior Member
Join Date: Jun 2006
Location: CAli
Old 06-20-2007 , 12:55   Re: combined kills????
Reply With Quote #20

Quote:
Originally Posted by Lee View Post
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
 
#define KILL_LIMIT 50
 
new terrorist_killsct_kills
 
public plugin_init()
{
    
register_plugin("Restart On x Kills""1.0""Lee")
}
 
public 
client_death(killervictimwpnindexhitplaceTK)
{
    switch(
cs_get_user_team(killer))
    {
        case 
CS_TEAM_T:
 
            if(++
terrorist_kills >= KILL_LIMIT)
            {
                
kill_limit_reached()
                
client_print(0print_chat"The terrorist team have reached %d kills.."KILL_LIMIT)
            }
 
        case 
CS_TEAM_CT:
 
            if(++
ct_kills >= KILL_LIMIT)
            {
                
kill_limit_reached()
                
client_print(0print_chat"Counter-Terrorists have reached %d kills.."KILL_LIMIT)
            }
    }
}
 
public 
kill_limit_reached()
{
    
terrorist_kills 0
    ct_kills 
0
    server_cmd
("sv_restart 5")

how can i turn this into an unlimited kills option
__________________

flyeni6 is offline
Send a message via AIM to flyeni6
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 20:45.


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