Raised This Month: $ Target: $400
 0% 

Help with DeathMsg


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
soccdoodcss
Veteran Member
Join Date: Nov 2006
Location: Wisconsin
Old 12-29-2006 , 01:48   Help with DeathMsg
Reply With Quote #1

Hey, i am completely new to the "register_event" thing so dont criticize but i cant seem to get the simple damn thing working... if anone could take a minute and help out id be very happy.
Thanks!!!
P.S. I know im a newb at scripting, dont even have to go there...
Attached Files
File Type: sma Get Plugin or Get Source (ZombieAttack.sma - 679 views - 900 Bytes)
__________________
"Now safe beneath their wisdom and their feet.
Here I will teach you truly how to sleep."

Last edited by soccdoodcss; 12-31-2006 at 18:39.
soccdoodcss is offline
Send a message via AIM to soccdoodcss
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 12-29-2006 , 02:41   Re: Help with DeathMsg
Reply With Quote #2

Here
Code:
#include <amxmodx> #include <amxmisc> #include <cstrike> #include <fun> #define PLUGIN "ZombieAttack" #define VERSION "0.0" #define AUTHOR "Bent/Soccdoodcss" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         register_event("ResetHUD", "choose_zom", "be")     register_event("DeathMsg", "death_mes", "a")         //g_var = register_cvar("zombie_on", "1", ADMIN_BAN) } public choose_zom(id) {     new CsTeams:team = cs_get_user_team(id)         if (team == CS_TEAM_T)     {         set_user_health(id, 200);     }         return PLUGIN_HANDLED } public death_mes() {     new killer = read_data(1)     new victim = read_data(2)         if(cs_get_user_team(killer) == CS_TEAM_T || cs_get_user_team(victim) != CS_TEAM_T)     {         set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 6.0, 12.0)         show_hudmessage(victim, "%s the zombie, has KILLED YOU!", killer)     }         return PLUGIN_HANDLED }
Deviance is offline
soccdoodcss
Veteran Member
Join Date: Nov 2006
Location: Wisconsin
Old 12-29-2006 , 13:27   Re: Help with DeathMsg
Reply With Quote #3

Hey, thanks a ton! ++Karma
__________________
"Now safe beneath their wisdom and their feet.
Here I will teach you truly how to sleep."
soccdoodcss is offline
Send a message via AIM to soccdoodcss
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 12-29-2006 , 13:58   Re: Help with DeathMsg
Reply With Quote #4

is show "the zombie,has killed you" withaut bame of killer :O
Alka is offline
soccdoodcss
Veteran Member
Join Date: Nov 2006
Location: Wisconsin
Old 12-29-2006 , 14:28   Re: Help with DeathMsg
Reply With Quote #5

dang, youre right!
__________________
"Now safe beneath their wisdom and their feet.
Here I will teach you truly how to sleep."
soccdoodcss is offline
Send a message via AIM to soccdoodcss
soccdoodcss
Veteran Member
Join Date: Nov 2006
Location: Wisconsin
Old 12-29-2006 , 14:29   Re: Help with DeathMsg
Reply With Quote #6

Yea... i know, does anyone know how to fix that????

It isn't displaying the 'killer' only the other text...

Code:
show_hudmessage(victim, "%s the zombie, has KILLED YOU!", killer)
__________________
"Now safe beneath their wisdom and their feet.
Here I will teach you truly how to sleep."
soccdoodcss is offline
Send a message via AIM to soccdoodcss
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 12-29-2006 , 14:32   Re: Help with DeathMsg
Reply With Quote #7

socc this plugin is show a msg after death..!? no? just that.....?
Alka is offline
soccdoodcss
Veteran Member
Join Date: Nov 2006
Location: Wisconsin
Old 12-29-2006 , 14:37   Re: Help with DeathMsg
Reply With Quote #8

Well i just started it, so im trying to get the basic stuff in first...unfortunately im too dumb to understand even the basics.. but im hoping eventually this will be another zombie mod for cs... I know there are tons, but im just making it as a learning type of thing.
__________________
"Now safe beneath their wisdom and their feet.
Here I will teach you truly how to sleep."
soccdoodcss is offline
Send a message via AIM to soccdoodcss
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 12-29-2006 , 14:39   Re: Help with DeathMsg
Reply With Quote #9

ok...just try the best.......;)
Alka is offline
soccdoodcss
Veteran Member
Join Date: Nov 2006
Location: Wisconsin
Old 12-29-2006 , 14:40   Re: Help with DeathMsg
Reply With Quote #10

lol thanks, i will

but to stay on topic, does anyone know how to fix the problem?
__________________
"Now safe beneath their wisdom and their feet.
Here I will teach you truly how to sleep."
soccdoodcss is offline
Send a message via AIM to soccdoodcss
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 22:24.


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