View Single Post
Knagg0
SourceMod Donor
Join Date: Dec 2005
Location: Germany
Old 06-16-2007 , 11:29   Re: [REQUEST] CS:S money methods
Reply With Quote #2

Code:
new g_iAccount = -1;

public OnPluginStart()
{
	g_iAccount = FindSendPropOffs("CCSPlayer", "m_iAccount");
}

public SetMoney(client, amount)
{
	if(g_iAccount != -1)
		SetEntData(client, g_iAccount, amount);
}

public GetMoney(client)
{
	if(g_iAccount != -1)
		return GetEntData(client, g_iAccount);

	return 0;
}
__________________

MFZB Gaming Community

[ www.mfzb.de ]


Last edited by Knagg0; 06-16-2007 at 19:28.
Knagg0 is offline