AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   some one help me undertsand hudmessage (https://forums.alliedmods.net/showthread.php?t=27370)

djmadox 04-20-2006 23:07

some one help me undertsand hudmessage
 
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]

v3x 04-20-2006 23:13

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 }


All times are GMT -4. The time now is 05:02.

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