I've tried to add;
1
parse('setmoney '..id..' '..player(id, 'money')+10)
But then the console says "player(id)" is a nil value.
I guess it's because collectables_break_hook has no (id) behind it, but how do I fix it?
----
Ftr;
- The script(s) has/ve to give EVERY player +10 money when someone breaks / kills something.
Thus;
- I need 2 scripts; 1 for NPC's and 1 for breakables.