Raised This Month: $ Target: $400
 0% 

word 3x in a row


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
JocAnis
Veteran Member
Join Date: Jun 2010
Old 01-09-2011 , 10:46   Re: word 3x in a row
Reply With Quote #4

Quote:
Originally Posted by nikhilgupta345 View Post
PHP Code:
#include <amxmodx>
#include <amxmisc>

new gSavedSay[33][256];
new 
gAmountSame[33];
public 
plugin_init()
{
    
register_clcmd"say""cmdSay" );
    
register_clcmd"say_team""cmdSay" );
}

public 
cmdSayid )
{
    new 
message[256];
    
read_argsmessagecharsmaxmessage ) );
    if( 
gAmountSame[id] == )
        
copymessage255gSavedSay[id], 255 );
    
    else if( 
equalmessagegSavedSay[id] ) )
    {
        
gAmountSame[id]++;
        
        if( 
gAmountSame 2  )
        {
            new 
name[32];
            
get_user_nameidname31 );

            
client_print0"%s has said the same thing 3 times in a row!"name );
        }
    }

    return 
PLUGIN_HANDLED;

Try that.
tnx, but errors in compiling..
JocAnis 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 02:06.


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