Im not using that function becuase I cant, its a cstrike one and im playing on tfc. I got a tfc money plugin going and I wanted to port the ice grenade plugin to tfc using well... the money plugin I have instead of cs functions I cant use. my code is...
Code:
public moneyforfrags()
{
new iPlayers[32],iNum
get_players(iPlayers,iNum)
for(new i=0;i<iNum;i++)
{
new id=iPlayers[i]
if(is_user_connected(id))
{
if(get_user_frags(id)>lastfrags[id])
{
new hv=g_money[id]+=(get_user_frags(id)-lastfrags[id])*5
g_money[id]+=(get_user_frags(id)-lastfrags[id])*5
lastfrags[id]=get_user_frags(id)
client_print(id,print_chat,"You gained $%i.",hv)
}
}
}
}
Thats just part of it but it seems like the only part you need.
All the money commands have used g_money