PHP Code:
public plugin_init(){
...
register_clcmd( "say", "check_say")
register_clcmd( "say_team", "check_say")
}
public check_say(id){
new arg[32]
read_args( arg, 31 )
if (equali(arg,"^"/your_command^""){ // replace your_command with whatever you want
my_func(id)
}
}
public my_func(id){
//this function will be executed if player with id write /your_command in chat (say or say_team)
}
__________________