Hello there!
I'm new to Rust developing, and I wanted to warm up myself by adding zone support for this gather manager plugin.
https://umod.org/plugins/zone-manager#hooks These hooks might do the job !
Being new to this I don't really know these following things :
- Should hooks be included somewhere to be useable within gather plugin?
- Should I use the "(void) OnEnterZone(string ZoneID, BasePlayer player)" to edit the modifiers value? I'm afraid they are global and would edit the whole server rates as there is no player-based rate
- or should I check for player coordinates just before the item adding to inventory? "item.amount = (int)(item.amount * modifier);"
Thanks for your help, I guess that when I'll understand this example it will be fine for my next projects