Raised This Month: $ Target: $400
 0% 

[solved]Hud problems.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Xum
Member
Join Date: Jun 2006
Old 07-06-2006 , 17:33   Re: Hud problems.
Reply With Quote #1

Code:
// Credits to Gizmo #include <amxmodx> #include <amxmisc>  new argMessage[256]          public plugin_init()  {     register_plugin("HUDmsg", "1.0", "Hip_hop_x")       register_cvar("sv_hudmsg", "1", 0)       register_concmd("amx_hudcenter", "cmd_message", ADMIN_CHAT, "message in the center")         register_concmd("amx_hudmsg", "cmd_extrem", ADMIN_ALL, "<message up>")        }    public startround(id) {      if(get_cvar_num("sv_hudmsg") == 0){ return PLUGIN_HANDLED         } set_task(2, argMessage)     }        public cmd_message (id)  {         if(!access(id, ADMIN_CHAT))         {                 console_print(id, "[AMXX] You have no access to this command!");                 return PLUGIN_HANDLED         }                     read_args(argMessage, 255)         set_hudmessage(130, 90, 70, -1.0, 0.45, 0, 1.0, 999991.0, 0.1, 0.2, -1)               show_hudmessage(0, argMessage) return PLUGIN_HANDLED }  public cmd_extrem(id) {         if(!access(id, ADMIN_CHAT)) {                 console_print(id, "[AMXX] You have no access to this command!");             return PLUGIN_HANDLED           }               read_args(argMessage, 255)     set_hudmessage(150, 89, 37, -1.0, 0.10, 0, 1.0, 999991.0, 0.1, 0.2, -1)         show_hudmessage(0, argMessage)       return PLUGIN_HANDLED  }        public recl(id)     {         console_print(id, "[Xu Message] For more plugins vizit xu-share.tk")     }    public client_connect(id)  {      new name[18]     get_user_name(id, name, 17)      if(get_cvar_num("sv_hudmsg") == 1) {         set_hudmessage(190, 30, 0, -1.0, 0.15, 0, 1.0, 21.0, 0.1, 0.2, -1)         show_hudmessage(0, "%s connecting", name)     } } public     client_disconnect(id) {     new name[18]     get_user_name(id, name, 17)         if(get_cvar_num("sv_hudmsg") == 1) {         set_hudmessage(190, 30, 0, -1.0, 0.15, 0, 1.0, 21.0, 0.1, 0.2, -1)         show_hudmessage(0, "%s has disconnected", name)     } }


If i die i can't see the message.
__________________
[IMG]http://img236.**************/img236/9858/xulogo2pq.gif[/IMG]Xu Share Website CjtServer
My Superhero 22/7 gameserver
ip: 64.94.171.241:27055 and the pasword is: qwerty
Xum is offline
Reply



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 08:05.


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