Hey guys...this plugin is suposed to give the losing team 1400 more dollars for winning.
Code:
/**************************************
* MFL.SMA (More For Losers) *
* *
* Gives players on the losing *
* team $1,400 more. *
* *
**************************************/
#include <amxmodx>
#include <cstrike>
#define PLUGIN "MoreForLosers"
#define VERSION "1.0"
#define AUTHOR "SweatyBanana"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("CT_Win","Check_CT","a");
register_event("Terrorists_Win","Check_T","a");
}
public Check_CT(id)
{
if(CsTeams:cs_get_user_team(id) == CS_TEAM_T)
{
cs_set_user_money(id, (cs_get_user_money(id) + 1400), 1)
}
return PLUGIN_HANDLED
}
public Check_T(id)
{
if(CsTeams:cs_get_user_team(id) == CS_TEAM_CT)
{
cs_set_user_money(id, (cs_get_user_money(id) + 1400), 1)
}
return PLUGIN_HANDLED
}