Raised This Month: $ Target: $400
 0% 

some one help me undertsand hudmessage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
djmadox
New Member
Join Date: Apr 2006
Old 04-20-2006 , 23:07   some one help me undertsand hudmessage
Reply With Quote #1

im new to amxmodx. and i wonder how to create a hudmessage
and where to put the hudmessage file.
i want a simple hud message that say's "welcome,bla,bla"
when a user loggs in to my server
Code:
#include <amxmodx> #include <amxmisc> #define PLUGIN "welcome hud" #define VERSION "1.0" #define AUTHOR "DjMadoX" public plugin_init()   {     register_plugin(PLUGIN,VERSION,AUTHOR)     register_clcmd("amx_hudmessage","hudmessage",ADMIN_CHAT," - actives HUD message") } public hudmessage() {     set_hudmessage(255, 0, 0, 0.02, 0.79, 0, 6.0, 12.0)     show_hudmessage(0, "-=[Welcome to .McPuff's Fun Server]=- /n for more info go to /n http://www.com") }   }

am i on the right way? [/small]
djmadox is offline
Send a message via MSN to djmadox
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-20-2006 , 23:13  
Reply With Quote #2

http://www.amxmodx.org/funcwiki.php?go=func&id=28

Code:
public hudmessage(id, level, cid) {     if(!cmd_access(id, level, cid, 1))         return PLUGIN_HANDLED     set_hudmessage(255, 0, 0, 0.02, 0.79, 0, 6.0, 12.0)     show_hudmessage(0, "-=[Welcome to .McPuff's Fun Server]=- ^n for more info go to ^n http://www.com")     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
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 05:02.


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