Raised This Month: $ Target: $400
 0% 

Help with DeathMsg


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 12-29-2006 , 02:41   Re: Help with DeathMsg
Reply With Quote #1

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
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 22:24.


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