AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to print fix text on the screen? (https://forums.alliedmods.net/showthread.php?t=77228)

New_Coder 09-07-2008 22:16

How to print fix text on the screen?
 
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.

Iwon 09-08-2008 06:44

Re: How to print fix text on the screen?
 
its in superheromod.sma

hleV 09-08-2008 07:06

Re: How to print fix text on the screen?
 
Quote:

Originally Posted by Iwon (Post 682936)
its in superheromod.sma

There should be a lower level of karma than "Low".

YamiKaitou 09-08-2008 10:23

Re: How to print fix text on the screen?
 
Quote:

Originally Posted by hleV (Post 682941)
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.

New_Coder 09-09-2008 04:58

Re: How to print fix text on the screen?
 
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

YamiKaitou 09-10-2008 10:15

Re: How to print fix text on the screen?
 
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.


All times are GMT -4. The time now is 03:09.

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