Raised This Month: $ Target: $400
 0% 

Problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Vechta
Veteran Member
Join Date: Jun 2010
Old 08-04-2010 , 10:14   Re: Problem
Reply With Quote #1

Quote:
Originally Posted by aaarnas View Post
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
Vechta is offline
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 00:14.


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