How can I find a target?
Hi people, as you can see im asking a really simple question. I wanna make a command like for example u say !kick (name) in the chat that user will get kicked, but I dont know how to find the target
|
Re: How can I find a target?
find_target
|
Re: How can I find a target?
Quote:
|
Re: How can I find a target?
Take a look at this. player menu
|
Re: How can I find a target?
Read the second argument from the chat command (read_argv or read_args natives) and use that arg in the cmd_target native (accepts username and #userid).
My mistake : it's cmd_target, not find_target. |
Re: How can I find a target?
I've tryed
PHP Code:
|
Re: How can I find a target?
Hmm nevermind, can anyone help me and tell me what im doing wrong in this code.
PHP Code:
|
Re: How can I find a target?
you should use read_argv() instead. It can detect which word have been typed as first, second, third, ...
|
Re: How can I find a target?
Already tryed that aint working either.
|
Re: How can I find a target?
Search "AMX Give AP" and you will see the example code
|
| All times are GMT -4. The time now is 00:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.