AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Hud msg on sv_restart 5? (https://forums.alliedmods.net/showthread.php?t=153647)

malec321 03-27-2011 03:44

Hud msg on sv_restart 5?
 
I dont know if this is possible, but after server executes "sv_restart 5" is their a way to pop up a HUD MSG for like 10 seconds after the sv_restart 5 is executed.. So I execute lo3.cfg

sv_restart 3
sv_restart 3
sv_restart 5
HUD MSG

ConnorMcLeod 03-27-2011 04:51

Re: Hud msg on sv_restart 5?
 
After the line put amx_csay command.

malec321 03-27-2011 13:37

Re: Hud msg on sv_restart 5?
 
Oh ... wow that was simple lmaoo thanks

malec321 03-27-2011 13:41

Re: Hud msg on sv_restart 5?
 
public endoh()
{
continue_gen_forward(forward_id)
}

What would I put for it to be a BLUE hudmsg for like 5-10 seconds

Exolent[jNr] 03-27-2011 21:23

Re: Hud msg on sv_restart 5?
 
http://www.amxmodx.org/funcwiki.php?...sage&go=search

malec321 03-27-2011 21:29

Re: Hud msg on sv_restart 5?
 
set_hudmessage ( red=0, green=0, blue=200, Float:x=-1.0, Float:y=0.35, effects=0, Float:fxtime=5.0, Float:holdtime=10.0, Float:fadeintime=0.1, Float:fadeouttime=0.2, channel=4 )

that would be a blue hud that takes 5 seconds to pop up and stays for 10 seconds?

Exolent[jNr] 03-27-2011 21:30

Re: Hud msg on sv_restart 5?
 
Don't put in the parameter names.
They are only there to show you what they are.

set_hudmessage(0, 0, 200, -1.0, 0.35, 0, 5.0, 10.0, 0.1, 0.2, 4)

That should be used instead of what you did.

Also, no, you used the time argument wrong.
fxtime is the time for the effects, holdtime is the time it is displayed.

malec321 03-27-2011 21:34

Re: Hud msg on sv_restart 5?
 
Code:

set_hudmessage(0, 0, 200, -1.0, 0.35, 0, 5.0, 10.0, 0.1, 0.2, 4)
show_hudmessage("BLAHBLAH")

this is correct? Thanks alot exo

Exolent[jNr] 03-27-2011 21:35

Re: Hud msg on sv_restart 5?
 
Quote:

Originally Posted by Exolent[jNr] (Post 1440427)
Also, no, you used the time argument wrong.
fxtime is the time for the effects, holdtime is the time it is displayed.

That meant you put the holdtime for 10.0, which is not 5 seconds.

malec321 03-27-2011 21:40

Re: Hud msg on sv_restart 5?
 
show_hudmessage(0, "BLAH")

that is to show the hud to everyone right?


All times are GMT -4. The time now is 14:36.

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