Raised This Month: $ Target: $400
 0% 

Help with Death Messages


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bruno
Member
Join Date: Jun 2005
Old 02-26-2006 , 09:42   Help with Death Messages
Reply With Quote #1

How can I show a hudmessage that shows who killed a certain player and who that certain player is?
__________________
If you have but one shot at an opportunity, make it count.
Bruno is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 02-26-2006 , 09:48  
Reply With Quote #2

Code:
#include <amxmodx> public plugin_init() {   register_event("DeathMsg" , "on_death" , "a"); } public on_death() {   new victim_id = read_data(2);   new killer_id = read_data(1);   new killer_name[33];   get_user_name(killer_id , killer_name , 32);   // set_hudmessage   show_hudmessage(victim_id , "%s just killed you!!" , killer_name); }
__________________
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
Bruno
Member
Join Date: Jun 2005
Old 02-26-2006 , 09:54  
Reply With Quote #3

Is there any way to make it so it tells everyone who killed that certain person? (not the victim)

By the way thanks for posting so fast.
__________________
If you have but one shot at an opportunity, make it count.
Bruno is offline
Bruno
Member
Join Date: Jun 2005
Old 02-26-2006 , 09:59  
Reply With Quote #4

Will this still work if I just want it used on one player that was picked randomly?
__________________
If you have but one shot at an opportunity, make it count.
Bruno is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 02-26-2006 , 10:40  
Reply With Quote #5

Code:
#include <amxmodx> public plugin_init() {   register_event("DeathMsg" , "on_death" , "a") } public on_death() {   new victim_id = read_data(2)   new killer_id = read_data(1)   new killer_name[33]   get_user_name(killer_id , killer_name , 32)   new victim_name[33]   get_user_name(victim_id , victim_name , 32)   // set_hudmessage   show_hudmessage(0 , "%s just killed %s!!" , killer_name, victim_name) }
[ --<-@ ] Black Rose is offline
Bruno
Member
Join Date: Jun 2005
Old 02-26-2006 , 10:43  
Reply With Quote #6

Thanks, but how do I make this work on only the certain person picked randomly?
__________________
If you have but one shot at an opportunity, make it count.
Bruno is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 02-26-2006 , 10:44  
Reply With Quote #7

just to show this message to one rendom player??
[ --<-@ ] Black Rose is offline
Bruno
Member
Join Date: Jun 2005
Old 02-26-2006 , 10:47  
Reply With Quote #8

No, I just want it to work for the random player picked. The death message that says who killed that random person picked.
__________________
If you have but one shot at an opportunity, make it count.
Bruno is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 02-26-2006 , 11:17  
Reply With Quote #9

what?
you want to kill a random player and then show a message WHO killed WHO and to all players?
[ --<-@ ] Black Rose is offline
Bruno
Member
Join Date: Jun 2005
Old 02-26-2006 , 11:20  
Reply With Quote #10

Yep. A random player is chosen. When someone kill that certain player, then the death message with the hud goes up. I can't seem to get it to work.
__________________
If you have but one shot at an opportunity, make it count.
Bruno 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 20:20.


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