Raised This Month: $ Target: $400
 0% 

Message's bugged!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 05-07-2012 , 17:23   Message's bugged!
Reply With Quote #1

Hello there,

i hooked say, but for example im saying 'You know i love you' i still unlock the phrase, it has to be only: 'i love you' for example. What am i doing wrong here?

PHP Code:
public CmdSay(id)
{
    new 
message[192], name[32]
    
read_args(messagecharsmax(message))
    
get_user_name(idname31)
    
remove_quotes(message)
    
    if (
contain(message"i love you") >= 0)
    {
        
client_cmd(0"spk misc/trophy.wav")
        
ColorChat(idGREY"%s ^4%s^1 has unlocked the achievement: ^4Secret Phrase #1"Prefixname)
        return 
PLUGIN_HANDLED
    
}
    if (
contain(message"i hate you") >= 0)
    {
        
        
client_cmd(0"spk misc/trophy.wav")
        
ColorChat(idGREY"%s ^4%s^1 has unlocked the achievement: ^4Secret Phrase #2"Prefixname)
        return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_CONTINUE

__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.

Last edited by Bilal Pro; 05-07-2012 at 17:27.
Bilal Pro is offline
 



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:29.


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