Raised This Month: $ Target: $400
 0% 

Problem plugin BadNames condition IF (containi)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
aEEk
Member
Join Date: May 2012
Location: Romania
Old 07-20-2013 , 17:45   Problem plugin BadNames condition IF (containi)
Reply With Quote #1

I have a problem with a BadNames plugin:
If i set any names (out of condition if), plugin change name in "Test BadNames"
I want to change name only under condition if (from plugin).

PHP Code:
#include <amxmodx>
#include <amxmisc>

#define z_Name "Test BadNames"

public plugin_init ( )
    
register_plugin"BAD_NAMES""1.0""aEEk" );

   
public 
client_connect id )
    
set_task 2.0"checkname"id );

   
public 
client_infochanged id )
    
set_task 2.0"checkname"id );

   
public 
checkname id )
{
    if (
is_user_connected(id))
    {
     new 
name[32]
        
get_user_name(idname31)
        if(
containi(name"player") != -|| containi(name"unnamed") != -|| containi(name".ro") != -|| containi(name".com") != -|| containi(name".xxx") != -|| containi(name".rs") != -|| containi(name".info") != -|| containi(name".in") != -|| containi(name".net") != -|| containi(name"www") != -11 || containi(name"connect") != -|| containi(name":27015") != -|| containi(name"89.") != -|| containi(name".org") != -)
        {    
        
client_cmd id"name ^"%s^""z_Name );
        }
    }


Last edited by aEEk; 07-21-2013 at 20:31. Reason: Problem not solved
aEEk is offline
Send a message via Yahoo to aEEk Send a message via Skype™ to aEEk
 



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 06:26.


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