player.pl <--- Possible?
Code:
sub EVENT_TARGET_CHANGE {
if(plugin::check_hasitem($client, xxxx) && if(plugin::check_hasitem($client, xxxx)
{
$client->NukeItem(xxxx);
$client->NukeItem(xxxx);
}
}
I put this in templates named as player.pl and it's purpose is to check 2 or more items on the player at once as soon as they switch targets and if they break this rule the nuke goes off and eliminates all of the items. (it's an anti-cheat for having items you're not supposed to.) This however is not working when I try it with a couple test items. Is there anyway to make this work?
NOTE: The player is not allowed to have both of these items and that's why the anti cheat burns them.