Quote:
Originally Posted by aaarnas
The most simple way of chat messages is this:
PHP Code:
public plugin_init() {
register_plugin("say /bank", "call_function")
}
public call_function(id) {
// This will be called when you put in to the chat command /bank.
}
In previous scripts you haven't checked if player typed correct message. If you hooking say command, function will be called always, when everyone types something into chat.
|
I do not understand what you mean with the first code :S
The bank is a other sub plugin not included in the chat plugin :S