Quote:
Originally Posted by BraveFox
You will need to configure the targeting by your self,
Using FindTarget and then you need to configure the @ by your self.
By using FindTarget you can choose if to enable the immunity:
PHP Code:
FindTarget(int client, const char[] target, bool nobots, bool immunity)
|
I've been using FindTarget but never knew it had immunity arguments. I guess by default it is set to 1. I'll check it later and let you know if it worked. Thanks!
Edit:
Seems to be working. Thanks a lot!
Any idea why error message doesn't display? If I get it right, FindTarget should return -1 if the target wasn't found.
It doesn't display anything if I do it like this:
...
...
int target = FindTarget(client, arg, true, false); // Do not target bots is set to true
if (target == -1)
{
ReplyToCommand(client, "Could not find that name");
}
P.S.
Tried same thing with any names that are not present on the server and still this message didn't show.