Raised This Month: $ Target: $400
 0% 

Death Announcement


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 03-25-2005 , 18:15   Death Announcement
Reply With Quote #1

I've made a little death msg script here, but it wont work, i think it's something with the 'register_event' because i dont know what i should set the flags to, i've forgotten it.. But take a look:

Code:
#include <amxmodx> public plugin_init() {   register_event("DeathMsg","death","abd") } public DeathMsg(id) {   new killer = read_data(1)   new khealth[32]   get_user_health(id,khealth,31)   new karmor[32]   get_user_armor(id,karmor,31)   new message[100]   format(message,99,"You where killed by %s^nHe still has %i HP and %i AP", killer, khealth, karmor);     set_hudmessage(100, 50, 200, 1.50, 1.50, 2, 2.0, 5.0, 0.3, 0.2, 6)   show_hudmessage(id,message) }
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 03-25-2005 , 23:12  
Reply With Quote #2

Code:
#include <amxmodx> public plugin_init() {   register_event( "DeathMsg",  "Event_Death",  "a" ) } public Event_Death() {   new killer = read_data(1)   new victim = read_data(2)   new khealth = get_user_health(killer)   new karmor = get_user_armor(killer)   new killer_name[32]   get_user_name( killer, killer_name, 31 )   new message[100]   format(message,99,"You were killed by %s^nHe/She still has %i HP and %i AP", killer_name, khealth, karmor);     set_hudmessage(100, 50, 200, 1.50, 1.50, 2, 2.0, 5.0, 0.3, 0.2, 6)   show_hudmessage(id,message)   return PLUGIN_CONTINUE }
xeroblood is offline
Send a message via MSN to xeroblood
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-25-2005 , 23:31  
Reply With Quote #3

Take a look at my nade messages plugin for another example.
__________________
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
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 03-26-2005 , 04:52  
Reply With Quote #4

Kay

Edit: Well i cant find it :/
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-26-2005 , 05:27  
Reply With Quote #5


http://forums.alliedmods.net/showthread.php?t=11525
__________________
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
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 09:56.


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