AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to add wait command in "sma" (https://forums.alliedmods.net/showthread.php?t=327086)

H0WL 08-31-2020 15:12

How to add wait command in "sma"
 
Hi , How to add wait command in "sma" or what exactly the cmd is ?
I need to add a wait in C4plugin.sma that shows the hudmessage for specified integer.
for example : show_hudmessage(0, "%s is planting The bomb !", PLname)
I need this message to show for 5 seconds or less/more. Please help


Thanks :D

fysiks 08-31-2020 18:56

Re: How to add wait command in "sma"
 
HUD messages have a parameter (in set_hudmessage()) for how long to show the message called "holdtime". This is the maximum number of seconds that the message will be displayed.

P.S. when asking for scripting help for writing or modifying plugins, you should post in the Scripting Help section. I've requested that this thread be moved for you but in the future, post there for help with scripting.

H0WL 09-01-2020 03:32

Re: How to add wait command in "sma"
 
Quote:

Originally Posted by fysiks (Post 2716184)
HUD messages have a parameter (in set_hudmessage()) for how long to show the message called "holdtime". This is the maximum number of seconds that the message will be displayed.

P.S. when asking for scripting help for writing or modifying plugins, you should post in the Scripting Help section. I've requested that this thread be moved for you but in the future, post there for help with scripting.


That worked and helped me a lot thank you. :3:)


All times are GMT -4. The time now is 13:55.

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