Raised This Month: $ Target: $400
 0% 

client_command


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-10-2010 , 03:39   Re: client_command
Reply With Quote #9

Quote:
Originally Posted by pike View Post
help to catch an event a client did not send a command
Code:
cmd[i]
PHP Code:
public client_command(id
{
        new 
argv[32]
        
read_argv(0,argvsizeof(argv)-1)
        for (new 
0MAX_CMDi++)
        if (
equal(argv,cmd[i]))
    {
        
client_print(0print_chat,"Client sent a command %s"cmd[i])
        return 
PLUGIN_HANDLED
}
//  help
    
if  client did not send a command cmd[i] ...
// 
Using tries would be much much more efficient.
__________________
fysiks 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:11.


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