Raised This Month: $ Target: $400
 0% 

Name contain


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Buckshot
Senior Member
Join Date: Mar 2014
Location: Sweden
Old 03-31-2014 , 15:36   Re: Name contain
Reply With Quote #6

Still can't get it working really though.. Having some problems here. What am i doing wrong? I'm only getting "Player not found" message

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

new const File[ ] = "addons/amxmodx/Reportlog.txt"
new const szPREFIX[ ] = "[AMXX]"


public plugin_init( )
{
    
register_plugin"Report Player""1.0""BuckShot" )
    
register_clcmd"say ""PlayerReport" )
}

public 
PlayerReportid )
{
    new 
String192 ], Command10 ]
    
read_argsString191 )
    
remove_quotes( String )
    
strbreakStringCommand9String191 )
    
    if( !
equaliCommand"/report" ) )
    {
        return;
    }
    new 
Name32 ], Reason154 ]

    
strbreakStringNamesizeofName ), Reason153 )
    if(
strlen(Name) == 0)
    {
        
ColorChatidGREEN"%s^x01 Example Usage:^x04 /Report ^"Michael^" ^"He is using Aimbot^""szPREFIX )
        return;
    }
    
    new 
Player cmd_targetidName )
    
    if( !
Player )
    {
        
ColorChatidGREEN"%s^x01 Player not found"szPREFIX )
        return;
    }
    
    if( 
strlenReason ) < 6)
    {
        
ColorChatidGREEN"%s^x01 Please supply more information about the player"szPREFIX )
        return;
    }
    
    
ColorChatidGREEN"%s^x01 Thank you! Your abuse report has been recieved"szPREFIX )
    new 
szName32 ], szAuthid32 ], szOutput300 ]
    
get_user_namePlayerszName31 )
    
get_user_authidPlayerszAuthid31 )
    
formatexszOutput299"Name: %s^n SteamID: %s^n Reason: %s^n"szNameszAuthidReason )
    
    
write_fileFileszOutput, -)

__________________
PM me for private work.



Last edited by Buckshot; 03-31-2014 at 15:44.
Buckshot is offline
Send a message via Skype™ to Buckshot
 



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


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