Raised This Month: $32 Target: $400
 8% 

Searching for Command


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
juz44
Junior Member
Join Date: Dec 2014
Old 12-03-2014 , 07:20   Searching for Command
Reply With Quote #1

I am looking for a command to pause a plugin after a certain time.
if someone knows please help
i am looking forward for helping comments
Thank you
juz44 is offline
DJ Data
SourceMod Donor
Join Date: Dec 2012
Location: Switzerland
Old 12-03-2014 , 09:11   Re: Searching for Command
Reply With Quote #2

You code a plugin to pause other plugins.
Just use a Timer and ServerCommand("sm plugins un/load .smx")
__________________
SourcePawn Coding Level: Novice
DJ Data is offline
Equiment
AlliedModders Donor
Join Date: Feb 2014
Old 12-03-2014 , 12:34   Re: Searching for Command
Reply With Quote #3

Code:
public OnPluginStart()
{
     CreateTimer(10.0, Timer_Off, _);
}
Where 10.0 - your value of time.

Code:
public Action:Timer_Off(Handle:timer)
{
     ServerCommand("sm plugins unload MyPlugin");
}
Where MyPlugin - name of ur plugin.

Last edited by Equiment; 12-03-2014 at 12:35.
Equiment is offline
juz44
Junior Member
Join Date: Dec 2014
Old 12-04-2014 , 01:12   Re: Searching for Command
Reply With Quote #4

Thanx a lot i will try it now.
thanx for your valuable time
but i would say one thing about plugin that is
i binded(merged) two plugins in one so i think it won't be a problem ?????
The plugins i Binded
https://forums.alliedmods.net/showthread.php?t=105239
https://forums.alliedmods.net/showthread.php?p=8906
1. knife_warmup.amxx
2. respwan_forever.amxx

Last edited by juz44; 12-04-2014 at 01:17.
juz44 is offline
juz44
Junior Member
Join Date: Dec 2014
Old 12-04-2014 , 01:31   Re: Searching for Command
Reply With Quote #5

error unknown command create timer
juz44 is offline
sim242
AlliedModders Donor
Join Date: Dec 2012
Location: England
Old 12-04-2014 , 03:36   Re: Searching for Command
Reply With Quote #6

Paste the code you used
__________________
Steam - Sim
Request a private plugin
Not accepting requests at this time
sim242 is offline
Send a message via Skype™ to sim242
Equiment
AlliedModders Donor
Join Date: Feb 2014
Old 12-04-2014 , 06:59   Re: Searching for Command
Reply With Quote #7

Amxx plugins ? It's not sourcemod
Equiment 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 03:31.


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