AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved [Help] HUD Message Don't hold (https://forums.alliedmods.net/showthread.php?t=308024)

anash 06-03-2018 21:54

[Help] HUD Message Don't hold
 
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

ultimatgold 06-03-2018 22:02

Re: [Help] HUD Message Don't hold
 
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 (Post 2595155)
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


ultimatgold 06-03-2018 22:07

Re: [Help] HUD Message Don't hold
 
set_hudmessage ( red = 200, green = 100, blue = 0, Float:x = 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:... )

CrazY. 06-04-2018 14:11

Re: [Help] HUD Message Don't hold
 
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 .."); }

anash 06-04-2018 14:21

Re: [Help] HUD Message Don't hold
 
Hello, thanks for reply
ultimatgold the code you sent me worked good, Thanks
CraZy. thanks , very useful i well need it


All times are GMT -4. The time now is 04:34.

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