Raised This Month: $51 Target: $400
 12% 

[REQ] HUD Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LambStar
Member
Join Date: Aug 2012
Location: UAE
Old 06-11-2013 , 10:31   [REQ] HUD Plugin
Reply With Quote #1

Hello,

Can someone make a plugin to show a hud message to all the clients when the cvar is set to 1 and show the message immediately or can be activated by a command like /sm and only admin will have access to the cmd/cvar

cvar can be amx_sm 1/0
message -> "The server is under construction and may restart. Sorry for the inconvenience"

Thanks!
LambStar is offline
oxygen935
Veteran Member
Join Date: Jun 2012
Location: Athens, Greece
Old 06-11-2013 , 11:23   Re: [REQ] HUD Plugin
Reply With Quote #2

Code:
#include <amxmodx> #define PLUGIN "Under Construction" #define VERSION "1.0" #define AUTHOR "OxYgEn" #define ADMIN_ACCESS ADMIN_BAN new p_sm public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_clcmd("say /sm", "cmd_sm")     p_sm = register_cvar("amx_sm", "1") } public cmd_sm(id) {     if(get_user_flags(id) & ADMIN_ACCESS && get_pcvar_num(p_sm) == 1)     {         set_hudmessage(255, 0, 0, -1.0, 0.19, 0, 6.0, 12.0)         show_hudmessage(0, "The server is under construction and may restart. Sorry for the inconvenience")     } }
__________________
Quote:
Originally Posted by quark View Post
You're a genius
Stopped any pawn work cause of university for computer science
oxygen935 is offline
Send a message via Skype™ to oxygen935
LambStar
Member
Join Date: Aug 2012
Location: UAE
Old 06-11-2013 , 11:28   Re: [REQ] HUD Plugin
Reply With Quote #3

Thanks
LambStar 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 01:14.


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