does anyone have a money plugin to do the next
i have cvar (mp_startmoney "3500")
I need a plug-in q next knife that keeps the player's money in a variable and every time he dies without earning money always 300 $ as a bonus for not being able to kill anyone
besides that I need another variable that is always 5000 for admins, vips
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <hamsandwich>
new g_pcvar_index;
public plugin_init()
{
RegisterHam(Ham_Spawn, "player", "fw_player_spawned", 1)
g_pcvar_index = get_cvar_pointer("mp_startmoney");
}
public fw_player_spawned(id)
{
if(!is_user_alive(id)) return;
new value = get_pcvar_num(g_pcvar_index);
if(cs_get_user_money(id) < value) cs_set_user_money(id, value);
}