Raised This Month: $ Target: $400
 0% 

Constant HUD Display


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 10-27-2005 , 22:38  
Reply With Quote #10

You should just do what Avalanche said:
Quote:
Originally Posted by XxAvalanchexX
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.
This is what your DeathMsg event function would look like:
Code:
public DeathMsg()     {     if(get_cvar_num("amx_ninjaon") == 1)         {         return PLUGIN_CONTINUE     }         new attacker = read_data(1)         if(PlayerClass[attacker] == CLASS_NOTHING) {         return PLUGIN_CONTINUE     }         if(PlayerLevel[attacker] == 6) {         return PLUGIN_CONTINUE     }         PlayerXP[attacker] += get_cvar_num("amx_ninja_xppk")           if(PlayerXP[attacker] >= LEVELS[PlayerLevel[attacker]])         {                 PlayerLevel[attacker] += 1                 client_print(attacker, print_chat, "[Ninja Mod] Congratulations! You are now level %i!", PlayerLevel[attacker])                 ShowHUD(attacker) // <--     }     return PLUGIN_CONTINUE }
Do the same in the ResetHUD event.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x 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 23:47.


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