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

How to add wait command in "sma"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
H0WL
Junior Member
Join Date: Jun 2020
Old 08-31-2020 , 15:12   How to add wait command in "sma"
Reply With Quote #1

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
H0WL is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-31-2020 , 18:56   Re: How to add wait command in "sma"
Reply With Quote #2

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.
__________________

Last edited by fysiks; 08-31-2020 at 18:57.
fysiks is offline
H0WL
Junior Member
Join Date: Jun 2020
Old 09-01-2020 , 03:32   Re: How to add wait command in "sma"
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
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.
H0WL 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 14:45.


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