Raised This Month: $ Target: $400
 0% 

cmd_target / find_player


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
JocAnis
Veteran Member
Join Date: Jun 2010
Old 03-21-2011 , 11:29   cmd_target / find_player
Reply With Quote #1

need help with find_player or cmd_target...i m trying to make code which will work like: say /stop Nick => stop command execute on Nick, here is my try:

PHP Code:
register_clcmd"say /stop""stop" )

public 
stopid )
{
    new 
arg132 ], name32 ]
    
read_argv1arg131 )
    
    new 
player find_player"bl" )//also tryed with: cmd_target( id, arg1, 31 ) and cmd_target( id, arg1, 0 ), none works
    
    
if( player )
    {
        
get_user_nameplayername31 )
        
kuldaunplayer ] = false
        ColorChat
0TEAM_COLOR"^4[Mini-Ban]^3 %s^1 je ipak ubedio admine da ne koristi zabranjene komande." )//this not metter
    
}
    else
    {
        
ColorChat0TEAM_COLOR"No player founds" )
        return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_HANDLED

thanks.
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 14:32.


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