Raised This Month: $95 Target: $400
 23% 

[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 , 19: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 - 1103 views - 3.8 KB)
__________________
I am out of order!

Last edited by grimvh2; 04-06-2010 at 11:37.
grimvh2 is offline
Zombiezzz
Veteran Member
Join Date: Nov 2009
Location: Nov 2009
Old 12-20-2009 , 19: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 , 19: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 , 19: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 , 19: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 , 19: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-21-2009 , 00: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 01:02.
ditmesteam is offline
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 12-21-2009 , 03: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 , 04: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 , 05: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


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 02:01.


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