Raised This Month: $51 Target: $400
 12% 

money


Post New Thread Reply   
 
Thread Tools Display Modes
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
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:55.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode