PHP Code:
//global int
int g_iAccount;
public void OnPluginStart()
{
g_iAccount = FindSendPropInfo("CCSPlayer", "m_iAccount");
}
void Extramoney(int iClient, int award)
{
if(IsValidPlayer(iClient) && VIP_IsClientVIP(iClient))
{
int money = GetEntData(iClient, g_iAccount);
switch(award)
{
case kill: money += BONUS_MONEY_NORMAL_KILL;
case headshot: money += BONUS_MONEY_HEADSHOT_KILL;
}
SetEntData(iClient, g_iAccount, money);
}
}
__________________