Raised This Month: $ Target: $400
 0% 

The Specialists coding help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ng1200
Member
Join Date: May 2005
Old 12-30-2005 , 05:40   The Specialists coding help
Reply With Quote #1

hi,
i need to know how do i get info from the kill.
my code should:
Check if someone was killed,
if someone was killed,
it'll print to chat and console of all the server: "<name> killed <name> with <weaponname>"
for example:
"ng1200 killed john doe with m4a1"

thanks, ng1200
ng1200 is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 12-30-2005 , 15:03  
Reply With Quote #2

Code:
public plugin_init() {     register_event("DeathMsg","event_deathmsg","a");  }  public event_deathmsg() {     new killer = read_data(1), victim = read_data(2), headshot = read_data(3), weapon = read_data(4);  }
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX 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 16:02.


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