AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Get all admins commands? as amx_help command (https://forums.alliedmods.net/showthread.php?t=195517)

omer 09-08-2012 14:29

Get all admins commands? as amx_help command
 
Hello Again,
How can I get all admins commands means I don't want to write again and again
PHP Code:

register_clcmd("amx_leave""blocked"); 

When we write amx_help it shows all commands.. so I want to block all commands in one register_clcmd.

ConnorMcLeod 09-08-2012 14:46

Re: Get all admins commands? as amx_help command
 
What do you want to do exactly ?

omer 09-08-2012 15:32

Re: Get all admins commands? as amx_help command
 
I want to block all admins command like this:
PHP Code:

register_clcmd("amx_votemap""dksblocked"); 

but I don't want to collect all commands manually I want commands to be collected automatically like in amx_help all commands come automatically in amx_help...

Emp` 09-08-2012 15:38

Re: Get all admins commands? as amx_help command
 
You could look at the amx_help command or you could look at my Smart Slash plugin.

omer 09-08-2012 15:43

Re: Get all admins commands? as amx_help command
 
Quote:

Originally Posted by Emp` (Post 1794537)
You could look at the amx_help command or you could look at my Smart Slash plugin.


Smart Slash is'nt usefull to me...
I have looked in amx_help but how can I use that in blocking all commands...?

ConnorMcLeod 09-08-2012 16:09

Re: Get all admins commands? as amx_help command
 
Why do you want to block commands ?
Just disable plugins...

omer 09-08-2012 16:17

Re: Get all admins commands? as amx_help command
 
OK I have collected all commands manually Thanks for you time :)

ConnorMcLeod 09-08-2012 16:19

Re: Get all admins commands? as amx_help command
 
Dynamic way is easy to code, but as you haven't tell what you want to do it's hard to do something.

fysiks 09-08-2012 17:20

Re: Get all admins commands? as amx_help command
 
Quote:

Originally Posted by omer (Post 1794577)
OK I have collected all commands manually Thanks for you time :)

If you can't learn from code that already does what you want then I suggest that you seriously consider stop trying to write plugins.

omer 09-09-2012 01:01

Re: Get all admins commands? as amx_help command
 
Quote:

Originally Posted by fysiks (Post 1794622)
If you can't learn from code that already does what you want then I suggest that you seriously consider stop trying to write plugins.

fysiks I saw that code and I made the plugin Its working :)


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

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