Quote:
Could you give an example of how to use dominations in our cfg file, and perhaps expand on any/all other currently available filters that the "etc" is alluding to?
|
The filters section in the config file will let you do stuff based on the event data given to the player_death event.
http://wiki.alliedmods.net/Counter-S...s#player_death
For example, something like this for domination:
Code:
"dominated"
{
"type" "int"
"1"
{
"multiplier" "1.0"
"addend" "2"
}
}
You can do similar for anything else given to that event.
Quote:
Any chance you ever got around to that? I'd like to give a few credits to people when they win a GG map.
|
I started on this plugin, however I wasn't happy with doing things via key/value files as it ended up being a bit messy. Might get around to it eventually. That said, you still wouldn't be able to use it for gungame wins as gungame uses public forwards to broadcast who wins and the idea was more based around game events.
If you put something like this into a plugin with store and gungame included properly, might work
Code:
public GG_OnWinner(client, const String:Weapon[], victim)
{
new points = 10;
Store_GiveCredits(Store_GetClientAccountID(client), points);
PrintToChatAll("%s Got %i credits for winning!", STORE_PREFIX, points);
}