AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   [03/04/10] New Command Adder (https://forums.alliedmods.net/showthread.php?t=112710)

grimvh2 12-20-2009 18:06

[03/04/10] New Command Adder
 
1 Attachment(s)
New Command Adder
Credits :
Arkshine - Fixing saving ( thanks again :p )
xPaw - Fixing bugs
Exolent - Fixing bugs
Hawk552 - Fixing coding errors

Information :
Ever got annoyed because there were commands that were to long or commands you cant remember and you dont want to modify the source code?
With this plugin you can replace old commands with new.
Note : The old commands will still work.
Note : flags will be the same as the original command.

Commands :
Code:

amx_addcommand  newcmdname oldcmdname type
type 0 = old command is a normal command. (console command)
type 1 = old command is a say or say_team command.
Note : The new commands work in console and with say or say_team

amx_reloadcommands
When adding new commands reload them with this command.

amx_removecommands
Delete all new commands.

Cvars :
Code:

ca_enable  Default : 1  Enables/Disables the plugin
Changelog :
Code:

Version 1.0 : Initial Release
Version 1.1 : Fixed bugs + Added Trie
Version 1.2 : Fixed bugs
Version 1.3 : Fixed coding errors

ToDo List :
Have no idea yet :p



Zombiezzz 12-20-2009 18:11

Re: [21/12/09] New Command Adder
 
nice

Arkshine 12-20-2009 18:17

Re: [21/12/09] New Command Adder
 
You may consider to use Trie. It will remove the limit and it will be more simple/efficient to check.

meTaLiCroSS 12-20-2009 18:18

Re: [21/12/09] New Command Adder
 
Really nice... i like it.

grimvh2 12-20-2009 18:22

Re: [21/12/09] New Command Adder
 
Quote:

Originally Posted by Arkshine (Post 1024571)
You may consider to use Trie. It will remove the limit and it will be more simple/efficient to check.

Never used Trie before, so ill maybe look into that later.

crazyeffect 12-20-2009 18:33

Re: [21/12/09] New Command Adder
 
Nice

ditmesteam 12-20-2009 23:53

Re: [21/12/09] New Command Adder
 
very nice, but does make server more lagger?
and am I right if use:
amx_addcommand say "menu" amx_cmdmenu

#8 SickneSS 12-21-2009 02:41

Re: [21/12/09] New Command Adder
 
|\|1(3 :O

Alucard^ 12-21-2009 03:50

Re: [21/12/09] New Command Adder
 
Quote:

Originally Posted by ditmesteam (Post 1024986)
very nice, but does make server more lagger?

I don't think so.

grimvh2 12-21-2009 04:47

Re: [21/12/09] New Command Adder
 
Quote:

Originally Posted by ditmesteam (Post 1024986)
very nice, but does make server more lagger?
and am I right if use:
amx_addcommand say "menu" amx_cmdmenu

Since the commands are loaded at plugin start or when you use the command amx_reloadcommands it cant make it more laggy.

for example :

amx_addcommand "goaway" "amx_kick" "1"
amx_reloadcommands

now say or say_team goaway playername

The plugin will change your new command with amx_kick and he will get kicked.


All times are GMT -4. The time now is 08:06.

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