Raised This Month: $ Target: $400
 0% 

[CS:S / CS:GO] Automatically Server Command Timer


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mariozankl
Member
Join Date: May 2012
Location: Austria
Old 02-21-2013 , 03:05   [CS:S / CS:GO] Automatically Server Command Timer
Reply With Quote #1

Hello,

I need a Plugin that automatically runs a Server Command after a fixed Time after Round started and at the end of a Round.

The Idea:

-I want to automatically unload a sourcemod Plugin 295 Seconds after the Round started (sm plugins unload NAME).
-At the End of the Round the same Plugin should be loaded to use it again in the next round. (sm plugins load NAME).
-The Timer should be resetet at the start of every Round so if a round takes shorter than 295 Seconds the plugin will NOT unloaded in the mid of the next round.

Can somebody write a Plugin for me that do this? I would be very grateful.

sincerely yours
mariozankl

(sry for my bad english)

Last edited by mariozankl; 02-21-2013 at 03:07.
mariozankl is offline
mariozankl
Member
Join Date: May 2012
Location: Austria
Old 02-22-2013 , 04:06   Re: [CS:S / CS:GO] Automatically Server Command Timer
Reply With Quote #2

No Idea?

I think the plugin should not be very difficult. It should only run commands after a fixed time.
mariozankl is offline
pubhero
Veteran Member
Join Date: Aug 2012
Location: Central Europe
Old 02-22-2013 , 04:54   Re: [CS:S / CS:GO] Automatically Server Command Timer
Reply With Quote #3

https://forums.alliedmods.net/showthread.php?t=67620
pubhero is offline
TheGodKing
BANNED
Join Date: Dec 2012
Location: PrintToChatAll("Aus
Old 02-22-2013 , 05:04   Re: [CS:S / CS:GO] Automatically Server Command Timer
Reply With Quote #4

I made this in a fairly short period of time so it may not be perfect, but it should do what you want.
If I made any mistakes or if the code can be improved please let me know.

Also please note that by default (as an example) rockthevote.smx is the plugin it will unload. Change it in cfg/sourcemod/

EDIT: Sorry if you have downloaded/used this, there was an error that I had to fix -Reuploaded
Attached Files
File Type: sp Get Plugin or Get Source (pluginunloader.sp - 550 views - 1.8 KB)

Last edited by TheGodKing; 02-22-2013 at 10:29. Reason: Reupload
TheGodKing is offline
mariozankl
Member
Join Date: May 2012
Location: Austria
Old 02-22-2013 , 11:53   Re: [CS:S / CS:GO] Automatically Server Command Timer
Reply With Quote #5

@TheGodKing

Thank you very much for the plugin, but it don't works correcly.

It unloads the Plugin to an irregular time (90-120 seconds (tested 3 rounds)) and not after 295 seconds.

Maybe the timer don't restart correctly at the beginning of the round?

The command at the end of the round (plugin load) works fine.

EDIT: SRY, that was the old version, ill thy the new one.

Last edited by mariozankl; 02-22-2013 at 12:05.
mariozankl is offline
mariozankl
Member
Join Date: May 2012
Location: Austria
Old 02-22-2013 , 12:24   Re: [CS:S / CS:GO] Automatically Server Command Timer
Reply With Quote #6

seems like version 1.1 works fine.

Thank you very much!
mariozankl is offline
AlfredSpain
Senior Member
Join Date: Oct 2010
Old 02-22-2013 , 13:45   Re: [CS:S / CS:GO] Automatically Server Command Timer
Reply With Quote #7

this http://forums.alliedmods.net/showthread.php?t=134288
This is also a timer, you can combine with executeconfigs

Last edited by AlfredSpain; 02-22-2013 at 13:45.
AlfredSpain is offline
mariozankl
Member
Join Date: May 2012
Location: Austria
Old 02-22-2013 , 16:45   Re: [CS:S / CS:GO] Automatically Server Command Timer
Reply With Quote #8

thx, but the plugin from TheGodKing works perfect.
mariozankl 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 04:24.


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