Oh...and this code..
Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#define PLUGIN = "round_money"
#define VERSION = "1.0"
#define AUTHOR = "Me"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_cvar("round_money", "16000")
register_event("ResetHUD", "roundMoney", "be")
}
public roundMoney(id)
{
new Players[32]
new playerCount, i, user
get_players(Players, playerCount, "b")
for (i=0; i<playerCount; i++)
new player = Players[i]
new money = cs_get_user_money (id)
new cVar = get_cvar_num(round_money)
if(money < cVar)
{
cs_set_user_money (id , round_money, 1) // sets users money to round_money and flashes the update
}
return PLUGIN_CONTINUE
}