AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   money (https://forums.alliedmods.net/showthread.php?t=321378)

yRestrict 02-07-2020 19:20

money
 
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);




All times are GMT -4. The time now is 22:35.

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