View Single Post
Ace67
Senior Member
Join Date: Sep 2020
Location: France
Old 05-16-2021 , 11:01   Re: Money Every 5 Minutes
Reply With Quote #16

Quote:
Originally Posted by Bugsy View Post
PHP Code:
public Give_Money()
{
    new 
PlayerList32 ], id PlayerNum

    
get_playersPlayerList PlayerNum "h" );

    for ( new 
PlayerNum i++ )
    {
        
id PlayerList];

        if ( 
CS_TEAM_T <= cs_get_user_teamid ) <= CS_TEAM_CT )
        {
                
cs_set_user_moneyid mincs_get_user_moneyid ) + GIVE_AMOUNT16000 ) );
        }
    }



Hey @Bugsy, can you edit for this lines 16k max money, thx.

Code:
public client_disconnect(id) remove_task(id+TASK_GETMONEY)

public Give_Money(taskid)
{
    new id = taskid -TASK_GETMONEY;
    static CsTeams:iTeam;

    if(iTeam == CS_TEAM_SPECTATOR || iTeam == CS_TEAM_UNASSIGNED)
            return

    cs_set_user_money(id, cs_get_user_money(id) + GIVE_AMOUNT)
}
__________________

Last edited by Ace67; 05-16-2021 at 11:03.
Ace67 is offline