Thread: money
View Single Post
Author Message
yRestrict
BANNED
Join Date: Apr 2019
Old 02-07-2020 , 19:20   money
Reply With Quote #1

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) < valuecs_set_user_money(idvalue);

yRestrict is offline