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

Solved [Help] HUD Message Don't hold


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
anash
Junior Member
Join Date: May 2018
Old 06-03-2018 , 21:54   [Help] HUD Message Don't hold
Reply With Quote #1

Hello.

I want ,for some raison, a hud message that pops up everytime there is an admin action, like kick or ban ( Specialy ban )

I already tried and added these two lines just after the ban code lines :
Code:
set_hudmessage(255, 255, 0, 0.02, 0.15, 0,6, 7)
show_hudmessage(id, "Player  Banned ... Raison ..")
When i tested, the hud message appears for milisec, It just doesn't hold.

I 'am asking for the way to make the hud message lasts for 7 seconds.

Thanks

Last edited by anash; 06-04-2018 at 14:23.
anash is offline
ultimatgold
BANNED
Join Date: Jan 2013
Location: https://t.me/pump_upp
Old 06-03-2018 , 22:02   Re: [Help] HUD Message Don't hold
Reply With Quote #2

Try:

Code:
set_hudmessage(255, 255, 0, 0.4, 0.4, 0, 7.0, 8.0, 0.3, 0.3, 2)
show_hudmessage (id, "Player Banned ... Raison ..")
Quote:
Originally Posted by anash View Post
Hello.

I want ,for some raison, a hud message that pops up everytime there is an admin action, like kick or ban ( Specialy ban )

I already tried and added these two lines just after the ban code lines :
Code:
set_hudmessage(255, 255, 0, 0.02, 0.15, 0,6, 7)
show_hudmessage(id, "Player  Banned ... Raison ..")
When i tested, the hud message appears for milisec, It just doesn't hold.

I 'am asking for the way to make the hud message lasts for 7 seconds.

Thanks

Last edited by ultimatgold; 06-03-2018 at 22:06.
ultimatgold is offline
Send a message via ICQ to ultimatgold Send a message via AIM to ultimatgold Send a message via Yahoo to ultimatgold Send a message via Skype™ to ultimatgold
ultimatgold
BANNED
Join Date: Jan 2013
Location: https://t.me/pump_upp
Old 06-03-2018 , 22:07   Re: [Help] HUD Message Don't hold
Reply With Quote #3

set_hudmessage ( red = 200, green = 100, blue = 0, Float = 0.4, Float:y = 0.2, effects = 0, Float:fxtime = 6.0, Float:holdtime = 12.0, Float:fadeintime = 0.1, Float:fadeouttime = 0.2,channel = 4 )
show_hudmessage ( index, const message[], any:... )
ultimatgold is offline
Send a message via ICQ to ultimatgold Send a message via AIM to ultimatgold Send a message via Yahoo to ultimatgold Send a message via Skype™ to ultimatgold
Old 06-04-2018, 12:14
anash
This message has been deleted by anash. Reason: I forgot to past the new amxx folder
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 06-04-2018 , 14:11   Re: [Help] HUD Message Don't hold
Reply With Quote #4

Code:
#include <amxmodx> new g_iSyncObj; public plugin_init() {     register_plugin("7 seconds HUD", "1.0", "AMx");     g_iSyncObj = CreateHudSyncObj();     register_clcmd("say /hud", "cmdHud"); } public cmdHud(pPlayer) {     showHud(pPlayer);     return PLUGIN_HANDLED; } showHud(pPlayer) {     set_hudmessage(255, 255, 0, 0.02, 0.15, 0, 0.1, 7.0, 1.1, 1.1);     ClearSyncHud(0, g_iSyncObj);     ShowSyncHudMsg(0, g_iSyncObj, "Player  Banned ... Raison .."); }
__________________








CrazY. is offline
anash
Junior Member
Join Date: May 2018
Old 06-04-2018 , 14:21   Re: [Help] HUD Message Don't hold
Reply With Quote #5

Hello, thanks for reply
ultimatgold the code you sent me worked good, Thanks
CraZy. thanks , very useful i well need it
anash 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 00:24.


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