AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   srvcmd or clcmd (https://forums.alliedmods.net/showthread.php?t=28457)

L0neW0lf 05-15-2006 08:42

srvcmd or clcmd
 
I am trying to catch a ban message.
I know the message i sent with amx_chat.

A i using amx_bans, so when a client bans via amxmenu the server posts a banmessage, but i aint sure wether it is a srvcmd or clcmd i need to catch....

The code i come up with:

Code:

register_srvcmd("amx_chat","call_myfunction")
I tried a bit different tings, and i have had luck catching say and team_say with this:

Code:

register_clcmd("say","call_say")
register_clcmd("say_team","call_tsay")

Somebody who knows how to chatch a amx_chat ?

/Wolf

Xanimos 05-15-2006 09:01

instead of register_srvcmd() use register_concmd()

L0neW0lf 05-16-2006 02:02

I tried with register_concmd("chat", function) and register_concmd("amx_chat", funcition)

Maby i overlook something..........
I am looking for a specific word i the text, is that the ting i should put in between "" ?

Xanimos 05-16-2006 12:06

I didn't look at what you asked.

So you want to catch when AMX BANS bans someone?
That can't be caught using register_*cmd().
You can try and catch it with register_message() I forget which message you want though. I think its SayText


All times are GMT -4. The time now is 16:26.

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