[TUT] A way to hook say commands and using in commands
1 Attachment(s)
Hello, i tried to search any tutorial talking about how to hook a say command and using it as command in console, but i don't found in forum.
This tutorial will about it using a commands in messagemode like: .kick, .ban and other commands if you need. First, hook a say command or say_team in plugin_init() PHP Code:
PHP Code:
PHP Code:
If your like to register all commands in another plugin its works! Ps. The original ideia has been made by Twilight Suzuka in this thread|Plugin http://forums.alliedmods.net/showthread.php?p=549954 |
Re: [TUT] A way to hook say commands and using in commands
You don't need to resend a client_cmd to achieve what you want to do (i agree that register_cmd("say .kill" won't allow you to retrieve arguments but you don't need to delay the execution with a new client_cmd).
|
Re: [TUT] A way to hook say commands and using in commands
if you register a clcmd using a symbol '.' in another plugin, this will resend to console like a console command its for one or more plugin compatibility.
i Guess, but how to call a .kill for example without using a new client_cmd ?? |
Re: [TUT] A way to hook say commands and using in commands
Pass args directly to a function, you already know them.
|
All times are GMT -4. The time now is 19:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.