Raised This Month: $ Target: $400
 0% 

double kill codes


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SAMURAI16
BANNED
Join Date: Sep 2006
Old 12-18-2006 , 06:31   double kill codes
Reply With Quote #1

i need an script example for double kill, if can somebody make one ; but only if i kill 2 players with a bullet
Hope to understand .. thanks
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
dutchmeat
Senior Member
Join Date: Sep 2006
Old 12-18-2006 , 06:50   Re: double kill codes
Reply With Quote #2

You are saying that the bullet 'dies' when it hits a player ?
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 12-18-2006 , 06:52   Re: double kill codes
Reply With Quote #3

he meant one killed two at the same time with a shot.
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
SAMURAI16
BANNED
Join Date: Sep 2006
Old 12-18-2006 , 07:25   Re: double kill codes
Reply With Quote #4

ya , that's it .. anybody ?
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
dutchmeat
Senior Member
Join Date: Sep 2006
Old 12-18-2006 , 07:27   Re: double kill codes
Reply With Quote #5

I guess you will have to make your own bullet then, there are alot of topics here.
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 12-18-2006 , 16:56   Re: double kill codes
Reply With Quote #6

I'd do something like this...

Code:
 #define TASK_CLEAR_KILL    100  new kill[33][24];  public plugin_init()  {     register_event("DeathMsg","event_deathmsg","a");  }  public event_deathmsg()  {     new killer = read_data(1);     new victim = read_data(2);     if(killer == victim || !killer)         return;     new weapon[24];     read_data(4,weapon,23);     if(kill[killer][0] && equal(kill[killer],weapon))     {         client_print(0,print_chat,"DOUBLE KILL!!");         kill[killer][0] = 0;     }     else     {         kill[killer] = weapon;         set_task(0.1,"clear_kill",TASK_CLEAR_KILL+killer);     }  }  public clear_kill(taskid)  {     new id = taskid-TASK_CLEAR_KILL;     kill[id][0] = 0;  }

When a death message appears, it stores what weapon it was with for a tenth of a second. If another death message from the same player with the same weapon appears in that time, it shows a double kill.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
dutchmeat
Senior Member
Join Date: Sep 2006
Old 12-18-2006 , 17:05   Re: double kill codes
Reply With Quote #7

I thought he was trying to make the bullet stay alive after it touched a body.
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat is offline
Ywa*NL
Senior Member
Join Date: Apr 2005
Location: The Netherlands
Old 12-19-2006 , 02:00   Re: double kill codes
Reply With Quote #8

Quote:
Originally Posted by dutchmeat View Post
I thought he was trying to make the bullet stay alive after it touched a body.

That's not a bad idea either.
__________________
Ywa*NL is offline
Send a message via MSN to Ywa*NL
dutchmeat
Senior Member
Join Date: Sep 2006
Old 12-19-2006 , 04:18   Re: double kill codes
Reply With Quote #9

It may not be a bad idea, but you will have to create a new bullet, since you can't do anything with the old source-coded bullets(at my opinion).
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat 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 07:00.


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