Raised This Month: $ Target: $400
 0% 

srvcmd or clcmd


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
L0neW0lf
Member
Join Date: Mar 2006
Location: Denmark
Old 05-15-2006 , 08:42   srvcmd or clcmd
Reply With Quote #1

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
L0neW0lf is offline
Send a message via ICQ to L0neW0lf Send a message via MSN to L0neW0lf Send a message via Skype™ to L0neW0lf
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 05-15-2006 , 09:01  
Reply With Quote #2

instead of register_srvcmd() use register_concmd()
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
L0neW0lf
Member
Join Date: Mar 2006
Location: Denmark
Old 05-16-2006 , 02:02  
Reply With Quote #3

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 "" ?
L0neW0lf is offline
Send a message via ICQ to L0neW0lf Send a message via MSN to L0neW0lf Send a message via Skype™ to L0neW0lf
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 05-16-2006 , 12:06  
Reply With Quote #4

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
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
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 16:26.


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