Raised This Month: $ Target: $400
 0% 

Constant HUD Display


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Kensai
Veteran Member
Join Date: Aug 2005
Location: San Diego, California
Old 10-26-2005 , 22:12   Constant HUD Display
Reply With Quote #1

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) XPcurrent)/(amount needed for next lvl)


My Classes are

Code:
#define CLASS_NOTHING 0 #define CLASS_STRONG 1 #define CLASS_FAST 2 #define CLASS_STEALTHY 3 #define CLASS_BALANCED 4

Playerclass,lvl,and xp are

Code:
new PlayerClass[33] new PlayerXP[33] new PlayerLevel[33]

Here's what I have now, but it's not working at all.

Code:
public ShowHUD(id)         {       new HUD[51]         format(HUD, 50, "[%s Ninja]Level: %i XP/ %i", CLASSES[PlayerClass[id]], PlayerLevel[id], PlayerXP[id])           message_begin(MSG_ONE, msgtext, {0,0,0}, id)       write_byte(0)       write_string(HUD)       message_end()       return PLUGIN_CONTINUE }
Kensai is offline
Send a message via AIM to Kensai Send a message via MSN to Kensai
 



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