This is a trivial example, used in conjunction with the latest Mani admin plugin (v1.1.0h).
Basically, whenever a player wounds a team member, he is fined $500 (presumable to pay the doctor bills). That's all this does.
I post this simple script here because this is an excellent example of the sort of easy tweaks that take 45 seconds to write and cause rave reviews from players on the server. Simple, but handy.
In player_hurt.cfg:
Code:
// EventScripts v0.7.6.1
alias payfine "es es_tell event_var(attacker) #lightgreen You've been fined $500 for shooting a teammate!; es ma_takecash event_var(attacker) 500"
if (event_var(attacker) notequalto event_var(userid)) then if (event_var(es_attackerteam) equalto event_var(es_userteam)) then payfine
Basically,if the attacker is hurting a teammate (but not himself), then tell the user that you're fining them and take some cash.
You could variablize the amount of cash, but I didn't since it's so simple to adjust and this was originally intended only for my server.
Enjoy,
-Mattie