AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   HUD Message Help (https://forums.alliedmods.net/showthread.php?t=21828)

The Free Man00 12-11-2005 12:48

HUD Message Help
 
So Im extremely new to scripting i wanna make a code to advert a clan this is all i have so far i dont know how to make the command to show the HUD Message to all of the people i need some serious help this is the code
Code:
 set_hudmessage(255, 0, 0, -1.0, -1.0, 0, 6.0, 12.0) show_hudmessage(id, "Please Visit The Clan Site Sometime")
(ps im not really a noob i hate posting on forums unless i really need to i have over 50 plugins)

v3x 12-11-2005 12:54

Try this:
Code:
set_hudmessage(255, 0, 0, -1.0, -1.0 ,_ , _, 2.0, _, _, 4);

The Free Man00 12-11-2005 12:56

um...
 
that doenst seem like it would make a command like amx_advertclan or something im sorry about my N00B-ishness

v3x 12-11-2005 13:00

Do you want to write a plugin that shows an HUD message when you enter a command in console?

The Free Man00 12-11-2005 13:15

Command
 
I wanna make a command for the HUD values whatever

DotNetJunkie 12-11-2005 13:34

http://www.amxmodx.org/doc/source/commands/cmds.htm

Scroll down until you see "amx_csay".

An example:

amx_csay red The soandso clan is recruiting!

Additionally look in your amxx.cfg and look for "amx_scrollmsg" and
"amx_imessage".

Using these you'll be able to display hud messages without any scripting.
amx_scrollmsg I believe will display scrolling text on a regular interval
on the bottom of the player's screen.

The Free Man00 12-11-2005 13:42

Not that
 
I know this is a huge waste of time creating a command like that ye yea i know amx_csay cyan amx_tsay cyan all that shit but i wanna make a command like that but it does it for you. (shitload waste of time)

v3x 12-11-2005 13:51

Code:
#include <amxmodx> #include <amxmisc> public plugin_init() {   register_plugin("Advert Message", "0.1", "nobody");   register_concmd("amx_advertclan", "ClCmd_ShowMsg", ADMIN_SLAY, ": Shows clan ad"); } public ClCmd_ShowMsg( id, lvl, cid ) {   if(!cmd_access(id, lvl, cid, 1))     return PLUGIN_HANDLED;   // add the set/show HUD stuff here   return PLUGIN_HANDLED; }

VEN 12-12-2005 03:50

Maybe
Code:
if(!cmd_access(id, lvl, cid, 1))
?

v3x 12-12-2005 03:58

Yeah, my bad.


All times are GMT -4. The time now is 16:11.

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