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

[Any] Command Time-Traveler [v1.2.0] (sm_future)


Post New Thread Reply   
 
Thread Tools Display Modes
Cuz
Senior Member
Join Date: May 2007
Location: Alaska
Old 09-23-2010 , 04:02   Re: [Any] Command Time-Traveler
Reply With Quote #11

Quote:
Originally Posted by DarthNinja View Post
Input your time in minutes as a decimal.
sm_future 1 //Does something in 1 minute
sm_future 0.33 //Does something in 20 seconds
Etc.

I'm not sure what your second question was, if there was one... But I'll try and answer it anyway:
Admin flags are ignored when the server executes something. So yes, you can use this plugin as you have above. Since it runs commands as ServerCommand() you may not actually need to use sm_cvar, only if the cvar is cheat flagged.
When I run this in a cfg:
Code:
sm_future 0.33 "sm_blind @all 0"
I get this error:
Code:
L 09/22/2010 - 23:58:26: SourceMod error session started
L 09/22/2010 - 23:58:26: Info (map "cp_dustbowl") (file "errors_20100922.log")
L 09/22/2010 - 23:58:26: [SM] Native "GetClientAuthString" reported: Client index 0 is invalid
L 09/22/2010 - 23:58:26: [SM] Displaying call stack trace for plugin "futureExe.smx":
L 09/22/2010 - 23:58:26: [SM]   [0]  Line 41, /home/groups/alliedmodders/forums/files/4/9/8/6/5/71072.attach::CmdFuture()
L 09/22/2010 - 23:59:02: Error log file session closed.
Cuz is offline
Searcher64
Senior Member
Join Date: Apr 2010
Old 09-23-2010 , 17:12   Re: [Any] Command Time-Traveler
Reply With Quote #12

Quote:
Originally Posted by DarthNinja View Post
Input your time in minutes as a decimal.
sm_future 1 //Does something in 1 minute
sm_future 0.33 //Does something in 20 seconds
Etc.

I'm not sure what your second question was, if there was one... But I'll try and answer it anyway:
Admin flags are ignored when the server executes something. So yes, you can use this plugin as you have above. Since it runs commands as ServerCommand() you may not actually need to use sm_cvar, only if the cvar is cheat flagged.



Why? It's not like there's really anything to see...
Well.......viewers would understand it more if there was a video? I can't make one myself because I can't really do it right now due to some circumstances
Searcher64 is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 09-24-2010 , 02:32   Re: [Any] Command Time-Traveler
Reply With Quote #13

Quote:
Originally Posted by Cuz View Post
When I run this in a cfg:
It was causing an error because it was trying to get the steamid of the client running the command for logging, and the client was the server in that case and the server has no steamid.
It's fixed now. See the notes below


~Update~
Quote:
  • V1.2.0
    • No longer errors if run via rcon
    • Support for quotes added
Fixed so you can now use the plugin in cfgs and via rcon.
You can now also use quotes with sm_future, for example:
sm_future 15 "sm_slap 'Player 2' 25"
The single quotes are treated as double quotes, so if a command needs quotes, just replace them with single quotes before using with sm_future.
__________________
DarthNinja is offline
Cuz
Senior Member
Join Date: May 2007
Location: Alaska
Old 09-24-2010 , 04:00   Re: [Any] Command Time-Traveler
Reply With Quote #14

Quote:
Originally Posted by DarthNinja View Post
~Update~

Fixed so you can now use the plugin in cfgs and via rcon.
You can now also use quotes with sm_future, for example:
sm_future 15 "sm_slap 'Player 2' 25"
The single quotes are treated as double quotes, so if a command needs quotes, just replace them with single quotes before using with sm_future.

Outstanding ...

Works great no errors.

Going to be a Popular plugin once people understand what can be done with it. Should be a built in feature of SM.
Cuz is offline
petomatick
Member
Join Date: Sep 2010
Old 10-03-2010 , 05:34   Re: [Any] Command Time-Traveler [v1.2.0] (sm_future)
Reply With Quote #15

isnt there any way to use this, without it saying it in-game?
Each time i try to play around with my friend, and give me 1000 hp in five mins, it busts me out! >:-(
petomatick is offline
war450
Member
Join Date: Apr 2006
Old 10-07-2010 , 06:59   Re: [Any] Command Time-Traveler [v1.2.0] (sm_future)
Reply With Quote #16

Great Plugin!

i'm having some issues with using it in customvotes voting system mostly due to it breaks the syntax using "". but still very very good
war450 is offline
MrSaturn
SourceMod Donor
Join Date: Jan 2009
Old 10-25-2010 , 03:47   Re: [Any] Command Time-Traveler [v1.2.0] (sm_future)
Reply With Quote #17

Can you add an ability to make the sm_future command silent and not showactivity? I tried editing the script myself by cutting out the showactivity2 line, but it ended up not working.
__________________
MrSaturn is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 10-26-2010 , 02:54   Re: [Any] Command Time-Traveler [v1.2.0] (sm_future)
Reply With Quote #18

Quote:
Originally Posted by MrSaturn View Post
Can you add an ability to make the sm_future command silent and not showactivity? I tried editing the script myself by cutting out the showactivity2 line, but it ended up not working.
I thought you got it working.
__________________
DarthNinja is offline
thx_you
Senior Member
Join Date: Feb 2009
Old 04-18-2011 , 02:55   Re: [Any] Command Time-Traveler [v1.2.0] (sm_future)
Reply With Quote #19

hi its posible your plugin do this
i want change the mod to zombie in this time 00:00
and in this time 08:00 he change the mode to normal mod ct vs t
"zombie_mode 1" in this time 00:00
"zombie_mode 0" in this time 08:00
thx_you is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 04-18-2011 , 03:21   Re: [Any] Command Time-Traveler [v1.2.0] (sm_future)
Reply With Quote #20

Quote:
Originally Posted by thx_you View Post
hi its posible your plugin do this
i want change the mod to zombie in this time 00:00
and in this time 08:00 he change the mode to normal mod ct vs t
"zombie_mode 1" in this time 00:00
"zombie_mode 0" in this time 08:00
Yeah, I don't know what you're asking. ಠ_ಠ
Thanks for the useless PM by the way.

If you want it to change a cvar, then you would use sm_future delaytime "mycvar myvalue" just like you would a command.
__________________
DarthNinja 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 16:58.


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