Raised This Month: $ Target: $400
 0% 

chat kick command with reason


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-09-2011 , 14:49   Re: chat kick command with reason
Reply With Quote #3

Quote:
Originally Posted by lis_16 View Post
I think you want to get cmd_target with player name and reason, so it won't work, you should parse from rest player name and the reason and then get cmd_target. But I'm not good at this like others
The variable "rest" will only contain the name in this case (see how parse actually works).

@reinert

You should use strbreak() for this situation:

PHP Code:
strbreak(szArgszCmdcharsmax(szCmd), szArgcharsmax(szArg))
strbreak(szArgszTargetcharsmax(szTarget), szReasoncharsmax(szReason)) 
Also, use server_cmd("kick #%d ^"%s^"", get_user_userid(player), szReason) because it will show the reason in the kick dialog. Not everyone uses/knows about the console. They can't not read it this way.
__________________
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 04:19.


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