Constant HUD Display
I'm trying to make a constant hud display for my Ninja Mod. Soemthing similar to superhero mod where it shows your lvl and xp etc.
I need to have it say like [(Ninja Class Here) Ninja] Level: (current Level) XP:(current)/(amount needed for next lvl) My Classes are Code:
Playerclass,lvl,and xp are Code:
Here's what I have now, but it's not working at all. Code:
|
You could do a set_task() on the person when they client_putinserver, and then lift it when they client_disconnect, (by using remove_task)
|
If you want a constant XP display of the type that WC3 uses, then you should probably hook the message and resend it everytime it comes in.
|
I got it to display constantly, but it doesn't update?
|
Post the newest code and I'll try to fix it.
|
Ok didn't want to post all the code so here's the .sma
[/small] |
Code:
Isn't StatusText used for when a player looks at another player and then pops up their name ? |
1 Attachment(s)
I renamed public precache to public plugin_precache (what's actually called)
Removed the new round part, and added a set task when the person joins. If they leave, it stops. Here it is, not sure if it'll work though: PS It's a good idea to stop using the AMXX Studio indenter, especially with that coding style. |
Thank you a bunch, Hawk. Will test this later after I finish homework 8)
|
You should just do what Avalanche said:
Quote:
Code:
|
| All times are GMT -4. The time now is 23:47. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.