Daily bonus.
#2

That'll give a bonus every day.
pawn Код:
new RecivedBonusOn[MAX_PLAYERS];//or use an enum(Must save it!)

public OnPlayerConnect(playerid)
{
    if(RecivedBonusOn[playerid] && RecivedBonusOn[playerid] != getdate())
    {
        GivePlayerMoney(playerid, 50000);
        GivePlayerScore(playerid, 20);
        new string[128];
        format(string,sizeof(string),"[+] "CBLUE"%s(%i) has collected "CGREEN"Daily bonus"CBLUE".",GetPName(playerid),playerid);
        SendClientMessageToAll(COL_GREEN, string);
        ShowBonusTDs(playerid);

        RecivedBonusOn[playerid] = getdate();
    }
    return 1;
}
Reply


Messages In This Thread
Daily bonus. - by xPirate - 20.07.2015, 10:27
Re: Daily bonus. [+REP] - by xVIP3Rx - 20.07.2015, 11:07
Re: Daily bonus. [+REP] - by xPirate - 20.07.2015, 11:12
Re: Daily bonus. [+REP] - by xPirate - 21.07.2015, 11:10

Forum Jump:


Users browsing this thread: 2 Guest(s)