Raised This Month: $100 Target: $400
 25% 

Commands to Chat


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands        Approver:   v3x (159)
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 04-13-2006 , 02:28   Commands to Chat
Reply With Quote #1

  • This plugin allows you to execute commands through chat. Also allows you to repeat the command X number of times as you cannot exactly press down enter to execute the command again like you can in console.

Commands:
  • say /cmd <command>
    • Execute <command> in your console.
  • say /cmd last <#>
    • Execute the last say command that u executed <#> times.
  • say /cmd stop
    • If you executed the command too many times, you can't execute another command. (because we don't want server flooding + crashing) So use this to stop executing the last command.


Example #1:
  • say /cmd amx_slap GHW 0
    say /cmd last 500
    --Executes "amx_slap GHW 0" 500 times in your console. (every 0.1 seconds, not all at once.)

Example #2:
  • say /cmd amx_slap GHW 0
    say /cmd last 500
    (20 seconds later) say /cmd stop
    --Executes "amx_slap GHW 0" about 200 times untill you typed "/cmd stop" and broke the cycle.
Attached Files
File Type: sma Get Plugin or Get Source (GHW_Commands_to_Chat.sma - 1416 views - 2.4 KB)
File Type: txt GHW_Commands_to_Chat.txt (1.4 KB, 515 views)

Last edited by GHW_Chronic; 02-23-2008 at 04:33.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 04-13-2006 , 09:14  
Reply With Quote #2

NICE!
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 04-13-2006 , 10:36  
Reply With Quote #3

I could swear a plugin with this basic functionality already exists. When I stop being lazy, I'll search for it.
__________________
Brad is offline
kILL-jOY
Member
Join Date: Jul 2005
Old 04-13-2006 , 14:38  
Reply With Quote #4

Quote:
Originally Posted by Brad
I could swear a plugin with this basic functionality already exists. When I stop being lazy, I'll search for it.
could u be thinking of this one http://forums.alliedmods.net/showthr...?t=14644+slash
__________________
**|$uperHero|** Free level 8 / 75+ Heroes / BuyXP at 68.191.146.3:27015 - CS 1.6


kILL-jOY is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 04-13-2006 , 14:55  
Reply With Quote #5

Quote:
Originally Posted by kILL-jOY
Quote:
Originally Posted by Brad
I could swear a plugin with this basic functionality already exists. When I stop being lazy, I'll search for it.
could u be thinking of this one http://forums.alliedmods.net/showthread.php?t=14644
that plugin only allows you to do things with amx_ prefixes. I know some plugins do not have amx_ prefixes. Also, if you had a plugin that did something like "/forums" it would just make u execute amx_forums in console and the /forums command wouldn't work. And lastly, mine contains the "/cmd last" function.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
kILL-jOY
Member
Join Date: Jul 2005
Old 04-13-2006 , 16:04  
Reply With Quote #6

i know but i was just thinking thats wat brad was thinking about

but that one could be easily be modified to not have the "amx_"
__________________
**|$uperHero|** Free level 8 / 75+ Heroes / BuyXP at 68.191.146.3:27015 - CS 1.6


kILL-jOY is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 04-18-2006 , 01:22  
Reply With Quote #7

you can execute the command as many times as you'de like(#) with "/cmd last <#>" now because server crashes were caused by the method I used to create tasks. However you can still only do one "/cmd last <#>" once untill the task ends as being allowed to execute that more than once would crash the server.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 02-09-2007 , 23:23   Re: Commands to Chat
Reply With Quote #8

Updated code and post to make neater.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
D o o m
Veteran Member
Join Date: Sep 2005
Location: Germany
Old 01-06-2008 , 08:29   Re: Commands to Chat
Reply With Quote #9

German translation
Code:
[de]

MSG_CYCLE_STOP = Momentaner Ausfuehrungszyklus gestoppt.

MSG_CYCLE_NOSTOP = Du hast keinen Ausfuehrungszyklus am Laufen.

MSG_EXECUTE_MANY = ^"%s^" %d Mal ausgefuehrt.

MSG_EXECUTE_SINGLE = ^"%s^" ausgefuehrt.

MSG_WAIT = Bitte warte bis dein letzter Befehl ausgefuehrt ist.

MSG_WAIT2 = ^"/cmd stop^" um den Ausfuehrungszyklus zu stoppen.
__________________
Heroes
:+: Deadpool :+:
D o o m is offline
biglittle007
Junior Member
Join Date: Nov 2007
Old 01-06-2008 , 13:28   Re: Commands to Chat
Reply With Quote #10

Spanish/Espaņol:

Code:
[es]

MSG_CYCLE_STOP = La ejecucion actual del ciclo ha sido detenida.

MSG_CYCLE_NOSTOP = No tienes un ciclo de ejecucion en progreso.

MSG_EXECUTE_MANY = Ejecutado ^"%s^" %d veces.

MSG_EXECUTE_SINGLE = Ejecutado ^"%s^".

MSG_WAIT = Por favor espera hasta que tu ultimo comando se termine de ejecutar.

MSG_WAIT2 = ^"/cmd stop^" para detener el ciclo de ejecucion.
biglittle007 is offline
Reply


Thread Tools
Display Modes

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 05:16.


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