AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help with DeathMsg (https://forums.alliedmods.net/showthread.php?t=49172)

soccdoodcss 12-29-2006 01:48

Help with DeathMsg
 
1 Attachment(s)
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...

Deviance 12-29-2006 02:41

Re: Help with DeathMsg
 
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 }

soccdoodcss 12-29-2006 13:27

Re: Help with DeathMsg
 
Hey, thanks a ton! ++Karma

Alka 12-29-2006 13:58

Re: Help with DeathMsg
 
is show "the zombie,has killed you" withaut bame of killer :O

soccdoodcss 12-29-2006 14:28

Re: Help with DeathMsg
 
dang, youre right!

soccdoodcss 12-29-2006 14:29

Re: Help with DeathMsg
 
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)

Alka 12-29-2006 14:32

Re: Help with DeathMsg
 
socc this plugin is show a msg after death..!? no? just that.....?

soccdoodcss 12-29-2006 14:37

Re: Help with DeathMsg
 
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.

Alka 12-29-2006 14:39

Re: Help with DeathMsg
 
ok...just try the best.......;) :P

soccdoodcss 12-29-2006 14:40

Re: Help with DeathMsg
 
lol thanks, i will

but to stay on topic, does anyone know how to fix the problem?


All times are GMT -4. The time now is 22:24.

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