Great plugin, I made a wrapper for this that auto gives unlimited HE
grenades on player's first spawn. Using this plugin along with L. Duke's
supernades plugin makes for some noobtacular fragfests on my
I'd like to help fix a minor problem. When I issue the command
from the console via rcon targeting any player the plugin gives me
grenade even if I am spectating and this message is logged to the
SM errors file. (The target does get unlimited grenades though).
L 09/08/2008 - 19:13:25: [SM] Native "GivePlayerItem" reported: World not allowed
L 09/08/2008 - 19:13:25: [SM] Displaying call stack trace for plugin "Custom\UnlimitedGrenades.smx":
L 09/08/2008 - 19:13:25: [SM]  Line 159, UnlimitedGrenades.sp::GiveNades()
L 09/08/2008 - 19:13:25: [SM]  Line 94, UnlimitedGrenades.sp::Command_UnlimitedGrenades()
After a little debugging I traced the problem to the 1st param of the
GivePlayerItem() call in the GiveNades() function.
if(HasUnlimitedHE[target] == false)
HasUnlimitedHE[target] = true;
PrintToChat(target, "\x04[SM] \x01Your have been giving \x04Unlmited HE Grenades");
ReplyToCommand(client,"[SM] %s Has been giving unlimited HE grenade", TargetName);
This tweak fixed it in my case:
The other two grenade cases have the same issue.
Thanks again for this very cool plugin!