Quote:
Originally Posted by lis_16
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(szArg, szCmd, charsmax(szCmd), szArg, charsmax(szArg))
strbreak(szArg, szTarget, charsmax(szTarget), szReason, charsmax(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.
__________________