Raised This Month: $ Target: $400
 0% 

HUD Message Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
The Free Man00
Junior Member
Join Date: Nov 2005
Old 12-11-2005 , 12:48   HUD Message Help
Reply With Quote #1

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)
__________________
It takes an idiot to do cool things thats why its cool.
The Free Man00 is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 12-11-2005 , 12:54  
Reply With Quote #2

Try this:
Code:
set_hudmessage(255, 0, 0, -1.0, -1.0 ,_ , _, 2.0, _, _, 4);
__________________
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
The Free Man00
Junior Member
Join Date: Nov 2005
Old 12-11-2005 , 12:56   um...
Reply With Quote #3

that doenst seem like it would make a command like amx_advertclan or something im sorry about my N00B-ishness
__________________
It takes an idiot to do cool things thats why its cool.
The Free Man00 is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 12-11-2005 , 13:00  
Reply With Quote #4

Do you want to write a plugin that shows an HUD message when you enter a command in console?
__________________
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
The Free Man00
Junior Member
Join Date: Nov 2005
Old 12-11-2005 , 13:15   Command
Reply With Quote #5

I wanna make a command for the HUD values whatever
__________________
It takes an idiot to do cool things thats why its cool.
The Free Man00 is offline
DotNetJunkie
Senior Member
Join Date: May 2005
Location: In front of my pc
Old 12-11-2005 , 13:34  
Reply With Quote #6

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.
__________________
DotNetJunkie is offline
Send a message via ICQ to DotNetJunkie Send a message via AIM to DotNetJunkie Send a message via MSN to DotNetJunkie Send a message via Yahoo to DotNetJunkie
The Free Man00
Junior Member
Join Date: Nov 2005
Old 12-11-2005 , 13:42   Not that
Reply With Quote #7

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)
__________________
It takes an idiot to do cool things thats why its cool.
The Free Man00 is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 12-11-2005 , 13:51  
Reply With Quote #8

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; }
__________________
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
VEN
Veteran Member
Join Date: Jan 2005
Old 12-12-2005 , 03:50  
Reply With Quote #9

Maybe
Code:
if(!cmd_access(id, lvl, cid, 1))
?
VEN is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 12-12-2005 , 03:58  
Reply With Quote #10

Yeah, my bad.
__________________
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
Reply


Thread Tools
Display Modes

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 16:11.


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