AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   on say / teamsay hook (https://forums.alliedmods.net/showthread.php?t=24692)

SaintK 03-01-2006 04:38

on say / teamsay hook
 
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......

teame06 03-01-2006 04:45

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 }

SaintK 03-01-2006 04:50

your a star
 
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....


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

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