Raised This Month: $ Target: $400
 0% 

How can I create a timed command?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Elpapuh
Member
Join Date: Aug 2017
Old 02-05-2019 , 14:01   How can I create a timed command?
Reply With Quote #1

I know I can create Timers, but the question is to make a custom timer command, let me explain it, for example, I want to make a plugin that executes for example "sm_noclip @all" for only 60 sec.

so.. I want to create a timer attached command that would look like this:

sm_example noclip@all 60

I don't want to make the command to be executed on 60 sec, I want it to be executed for 60 sec
Elpapuh is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 02-05-2019 , 14:29   Re: How can I create a timed command?
Reply With Quote #2

This: https://forums.alliedmods.net/showthread.php?p=2603440
would allow you do do "sm_noclip @all 0" command after 60 seconds. You just gotta do "sm_noclip @all 1" also.
So you would in theory do this in console:

Code:
sm_noclip @all 1;sm_delaycmd 60 "sm_noclip @all 0"

Last edited by Mitchell; 02-05-2019 at 14:30.
Mitchell 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 11:33.


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