View Single Post
CamerDisco
AlliedModders Donor
Join Date: Aug 2015
Location: Poland
Old 08-22-2017 , 11:00   Re: Check if player has a zeus, than give. If he has - don't give a new one.
Reply With Quote #8

PHP Code:
//global int
int g_iAccount;

public 
void OnPluginStart()
{
    
g_iAccount FindSendPropInfo("CCSPlayer""m_iAccount");
}

void Extramoney(int iClientint award)
{
    if(
IsValidPlayer(iClient) && VIP_IsClientVIP(iClient))
    {
        
int money GetEntData(iClientg_iAccount);
        switch(
award)
        {
            case 
kill:        money += BONUS_MONEY_NORMAL_KILL;
            case 
headshot:    money += BONUS_MONEY_HEADSHOT_KILL;
        }
        
SetEntData(iClientg_iAccountmoney);
    }

__________________


Max-Play.pl - the best polish servers
CamerDisco is offline