Raised This Month: $ Target: $400
 0% 

How to print fix text on the screen?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
New_Coder
New Member
Join Date: Sep 2008
Old 09-07-2008 , 22:16   How to print fix text on the screen?
Reply With Quote #1

See the image, equal of SuperHeroMod Help.

Quote:
#include <amxmodx>

new help_hudmsg[501];
public plugin_init()
{
register_plugin("Blah", "1.0", "anyone")
caps()
}

public caps()
{
new lenx = 500
new n = 0
n += copy(help_hudmsg[n],lenx-n,"Super Hero MOD Help^n^n")

n += copy(help_hudmsg[n],lenx-n,"How To Use Powers:^n")
n += copy(help_hudmsg[n],lenx-n,"--------------------^n")
n += copy(help_hudmsg[n],lenx-n,"Input bind into console^n")
n += copy(help_hudmsg[n],lenx-n,"Bind Example:^n")
n += copy(help_hudmsg[n],lenx-n,"bind h +power1^n")
n += copy(help_hudmsg[n],lenx-n,"--------------------^n^n")
n += copy(help_hudmsg[n],lenx-n,"Client Commands:^n")
n += copy(help_hudmsg[n],lenx-n,"/help^n")
n += copy(help_hudmsg[n],lenx-n,"/clearpowers^n")
n += copy(help_hudmsg[n],lenx-n,"/showmenu^n")
n += copy(help_hudmsg[n],lenx-n,"/drop <hero>^n")
n += copy(help_hudmsg[n],lenx-n,"/herolist^n")
n += copy(help_hudmsg[n],lenx-n,"/playerskills^n")
n += copy(help_hudmsg[n],lenx-n,"/playerlevels^n")
n += copy(help_hudmsg[n],lenx-n,"/myheroes^n")
n += copy(help_hudmsg[n],lenx-n,"------------------------^n")
n += copy(help_hudmsg[n],lenx-n,"Enable Help: /helpon^n")
n += copy(help_hudmsg[n],lenx-n,"Disable Help: /helpoff")
}
I try, but, no results... Dont look the messages, I want a one plugin with this. Im new, i cannot programmer.

[IMG]http://img210.**************/img210/2218/superherohelpyf0.jpg[/IMG]

See this code:

Thank you for help.

Last edited by New_Coder; 09-07-2008 at 22:18.
New_Coder is offline
Iwon
BANNED
Join Date: Jul 2008
Old 09-08-2008 , 06:44   Re: How to print fix text on the screen?
Reply With Quote #2

its in superheromod.sma
Iwon is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 09-08-2008 , 07:06   Re: How to print fix text on the screen?
Reply With Quote #3

Quote:
Originally Posted by Iwon View Post
its in superheromod.sma
There should be a lower level of karma than "Low".
__________________
hleV is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 09-08-2008 , 10:23   Re: How to print fix text on the screen?
Reply With Quote #4

Quote:
Originally Posted by hleV View Post
There should be a lower level of karma than "Low".
There is, Very Low. He just hasn't gotten there yet.


Quote:
I try, but, no results... Dont look the messages, I want a one plugin with this. Im new, i cannot programmer.
Are you displaying the hud message? The code that you showed us is not.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
New_Coder
New Member
Join Date: Sep 2008
Old 09-09-2008 , 04:58   Re: How to print fix text on the screen?
Reply With Quote #5

Yes, it is the superherohod.sma.
But, i want a create a plugin equal, with only this function, the hud_message.
Someone can help me in code?


Thx
New_Coder is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 09-10-2008 , 10:15   Re: How to print fix text on the screen?
Reply With Quote #6

You need to tell the plugin to display the hud message, the code you showed us is not doing that. You have to call set_hudmessage and show_hudmessage.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Reply



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 20:01.


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