Raised This Month: $ Target: $400
 0% 

Here we go again, health messages?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Davidos
Senior Member
Join Date: Feb 2005
Old 02-16-2007 , 17:26   Here we go again, health messages?
Reply With Quote #1

How do you make a message that gets sent when you are, for example, under 25 hp? (Sven coop)

I was fumbling around but all I got was:

Code:
#include <amxmodx> #include <fun> #include <string> public plugin_init() {     register_plugin("Text Health", "0.1337", "Davidos")     register_event("health","display_hud", "be")    } public display_hud(id) {     new players[32]     get_players(players)     {         set_hudmessage(255,0,0,0,0,0,99.9,255,0.0,0.0,-1)         switch ( read_data(1) ) {             case 0 .. 25 :     ----------------->show_hudmessage(players,"Caution!")<-------------------//need a BIGGER SIGN or something??             default :             show_hudmessage(players, "Overcharged")         }     } }

Which ofcourse doesn't work, anyone wanna <kick> point me in the right direction?

Code:
Welcome to the AMX Mod X 1.00-251 Compiler.
Copyright (c) 1997-2004 ITB CompuPhase, AMX Mod X Team

Warning: Number of arguments does not match definition on line 31
Warning: Tag mismatch on line 33
Warning: Tag mismatch on line 33
Warning: Tag mismatch on line 33
Error: Argument type mismatch (argument 1) on line 36
Error: Argument type mismatch (argument 1) on line 38
--> indicates errors!

Last edited by Davidos; 02-16-2007 at 19:34. Reason: Duh... can't type for sh*
Davidos is offline
 



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 00:44.


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