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!