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

[03/04/10] New Command Adder


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands        Approver:   Hawk552 (427)
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 12-20-2009 , 18:06   [03/04/10] New Command Adder
Reply With Quote #1

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


Attached Files
File Type: sma Get Plugin or Get Source (CommandAdder.sma - 1440 views - 3.8 KB)
__________________
I am out of order!

Last edited by grimvh2; 04-06-2010 at 10:37.
grimvh2 is offline
Zombiezzz
Veteran Member
Join Date: Nov 2009
Location: Nov 2009
Old 12-20-2009 , 18:11   Re: [21/12/09] New Command Adder
Reply With Quote #2

nice
__________________
Zombiezzz is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-20-2009 , 18:17   Re: [21/12/09] New Command Adder
Reply With Quote #3

You may consider to use Trie. It will remove the limit and it will be more simple/efficient to check.
__________________
Arkshine is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 12-20-2009 , 18:18   Re: [21/12/09] New Command Adder
Reply With Quote #4

Really nice... i like it.
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 12-20-2009 , 18:22   Re: [21/12/09] New Command Adder
Reply With Quote #5

Quote:
Originally Posted by Arkshine View Post
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.
__________________
I am out of order!
grimvh2 is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 12-20-2009 , 18:33   Re: [21/12/09] New Command Adder
Reply With Quote #6

Nice
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
ditmesteam
Senior Member
Join Date: Oct 2009
Old 12-20-2009 , 23:53   Re: [21/12/09] New Command Adder
Reply With Quote #7

very nice, but does make server more lagger?
and am I right if use:
amx_addcommand say "menu" amx_cmdmenu

Last edited by ditmesteam; 12-21-2009 at 00:02.
ditmesteam is offline
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 12-21-2009 , 02:41   Re: [21/12/09] New Command Adder
Reply With Quote #8

|\|1(3 :O
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 12-21-2009 , 03:50   Re: [21/12/09] New Command Adder
Reply With Quote #9

Quote:
Originally Posted by ditmesteam View Post
very nice, but does make server more lagger?
I don't think so.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 12-21-2009 , 04:47   Re: [21/12/09] New Command Adder
Reply With Quote #10

Quote:
Originally Posted by ditmesteam View Post
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.
__________________
I am out of order!
grimvh2 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 06:58.


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