Here we go again, health messages?
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:
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. |
Re: Here we go again, health messages?
Use VEN's tutorial http://forums.alliedmods.net/showthread.php?t=42159
to make a round start event. Set everybodys rendering to the default there. (or use get_user_health and set it using that value) Then create a register message for the damage event. PHP Code:
PHP Code:
|
Re: Here we go again, health messages?
Quote:
My glow mod WORKS FINE, better than anything else out there it's just the last few lines. Read it again, I just edited them out -_- + I said it was for sven coop, round stuff still gonna work? |
Re: Here we go again, health messages?
Oh right. Was thinking CS for some reason.
Um in set_hudmessage the 4,5 and 8th parameters all need to be floats and you've got them as integers. You also have to create a for loop and loop through all the players (think theres info in the help doc on how to do this) and then change the 'players' in your show_hudmessage to be players[counter] Oh wait and the first error is because get_players needs 2 variables. player index array and num of players integer PHP Code:
PHP Code:
|
Re: Here we go again, health messages?
Quote:
as for the messages, same as hl dm so... As for the plugin, it keeps messing up when I try to use it... no hud messages at all... what else in there is not like it's supposed to be... Where is avalanche when you need him... Code:
you mean like this? only error log now Code:
Welcome to the AMX Mod X 1.00-251 Compiler.as for In game the message doesnt show... Anyway, I dunno bout you but I'm going to bed, been coding since 10 it's now 00:09 |
Re: Here we go again, health messages?
I think this is alot easier than switch statements
PHP Code:
|
Re: Here we go again, health messages?
What errors are you getting?
I don't know anything about the 'health' message but I'm assuming that it does pass and id and that read_data(1) gives you the hp of that player. So the only other error could be in displaying the hud message. I have no idea what all the numbers do, i just compared them with this http://www.amxmodx.org/funcwiki.php?...sage&go=search to see if all the data types matched. Maybe you need to set different numbers.. |
Re: Here we go again, health messages?
Quote:
|
Re: Here we go again, health messages?
Remove the #include <fun>, you don't use anything from it anyway.
Maybe something wrong with your fun module because without that defined it compiles fine, but still with all the tag mismatches. http://www.amxmodx.org/funcwiki.php?...sage&go=search Read that carefully. It tells you what type each of the parameters for set_hudmessage have to be. Some must be integers (0, 1 etc) other must be floats (0.0, 24.3 etc). This is what's causing the tag mismatch errors. Fix those and it should compile no errors and work hopefully. |
Re: Here we go again, health messages?
Double post for bump >so people read it<
Code:
can anyone point out why nothing shows in the hud? |
| All times are GMT -4. The time now is 00:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.