Raised This Month: $ Target: $400
 0% 

on say / teamsay hook


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SaintK
Veteran Member
Join Date: Mar 2004
Old 03-01-2006 , 04:38   on say / teamsay hook
Reply With Quote #1

hi guys and girls is there a specific hook for catching when people use say or team say or do i have to hook the console in some way.

regards......
SaintK is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 03-01-2006 , 04:45  
Reply With Quote #2

Code:
#include <amxmodx> public plugin_init() {     register_plugin("Alfred", "1.0", "Alfred")     register_clcmd("say", "cmd_say")     register_clcmd("say_team", "cmd_sayteam") } public cmd_say(id) {     new arg[192]     read_args(arg, 191)     remove_quotes(arg) // Say Message are encase in Quotes         client_print(0, print_chat, "[ZOMG Say] %s", arg)         // Then use parse, spilt, or strbreak to break apart the arugments } public cmd_sayteam() {     new arg[192]     read_args(arg, 191)     remove_quotes(arg) // Say Message are encase in Quotes         client_print(0, print_chat, "[ZOMG Team Say] %s", arg)     // Then use parse, spilt, or strbreak to break apart the arugments }
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
SaintK
Veteran Member
Join Date: Mar 2004
Old 03-01-2006 , 04:50   your a star
Reply With Quote #3

thank you very much in deed getting sick of telling euro players to speak english so thought i would get the server to say it instead...

again appreciate the fast and informative response....
SaintK 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 20:18.


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