Quote:
Originally Posted by fysiks
Does it work with AMX Mod X 1.10 installed on a real HLDS server? Also, are you running a Steam version of the game?
|
I have no option to install real HLDS on my server.
No i am not on steam... i downloaded the CS over google, i test it with AMX Mod X 1.9 with a friend over steam and to him is work if using game over steam
But as you know there is a lot of people still using non-steam so i have to make it work on non-steam users to.
I am using print_center only once on entire server, i use it for showing damage cause if i use HUD message it will start blink others HUDS from screen cause i have more than 4 HUD message at same time.
-----
Code:
public plugin_init()
{
//Damage
register_event("Damage","Event_Damage","b","2!0","3=0","4!0")
}
public Event_Damage(iVictim)
{
new id = get_user_attacker(iVictim)
if(g_zombie[iVictim] || g_nemesis[iVictim] || g_assassin[iVictim])
{
//to prevent going with (- negative)
if(get_user_health(iVictim) > 100)
{
//set_hudmessage(255, 255, 255, -1.0, 0.66, 1, 0.01, 5.0, 0.0, 0.0) //R, G, B, X Pos, Y Pos, Effect, Time, Hold time
//show_hudmessage(id, "Damage: -%d | Health: %d", read_data(2), get_user_health(iVictim)-read_data(2))
client_print(id, print_center, "[ Damage: -%d | Health: %d ]", read_data(2), get_user_health(iVictim)-read_data(2));
}
}
}
If i have an option to display this without print_center and of course without start blinking the others HuD messages will be great i move forward cause only here i use print_center