If a player is warned then only who warned the player and who got warned sees the msg in pm....I want to modify that so every body can see the warn..so other players can avoid it
So need some help dont know the codes to modify :tongue: anyone knows
If a player is warned then only who warned the player and who got warned sees the msg in pm....I want to modify that so every body can see the warn..so other players can avoid it
So need some help dont know the codes to modify :tongue: anyone knows
Replace the line
$players[$guid]->say($mod->getLngString("hasBeenWarned", array("<NAME>", "<REASON>", "<WARNS>", "<MAXWARNS>"), array($players[$towarn]->getName(), $reason, $players[$towarn]->warns_warns, $mod->getCV("warns", "warnstokick"))));
with the line
$mod->rconSay($mod->getLngString("hasBeenWarned", array("<NAME>", "<REASON>", "<WARNS>", "<MAXWARNS>"), array($players[$towarn]->getName(), $reason, $players[$towarn]->warns_warns, $mod->getCV("warns", "warnstokick"))));
In adminmod/plugins/warns.php
Thanks to NiNJA for helping me with this one :biggrin:
PHP Parse error: syntax error, unexpected T_VARIABLE in E:\adminmod\plugins\warns.php on line 84