Bank-Time
#8

Try this:

pawn Код:
timer2 = SetTimer("BankTime", 999, 1);

public BankTime()
{
    new hours; new minutes;
    GetPlayerTime(i, hours, minutes);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(hours == 6 && minutes == 0)
        {
            if(IsPlayerInArea(i, 1711.4371, 1731.7839, -1670.3661, -1643.2722) && GetPVarInt(i, "GotPayed") == 0)
            {
                GivePlayerMoney(i, 7500);
                SendClientMessage(i, 0x12900BBF, "||| 6:00 | BANK TIME: |||");
                SendClientMessage(i, 0xFFFF00AA, "YOU RECEIVE +7.500 $");
                PlayerPlaySound(i, 1058, 0.0, 0.0, 0.0);
                SetPVarInt(i, "GotPayed", 1);
            }
        }
        else
        {
            SetPVarInt(i, "GotPayed", 0);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Bank-Time - by Soeren - 10.12.2008, 21:26
Re: Bank-Time - by LarzI - 10.12.2008, 21:35
Re: Bank-Time - by Soeren - 10.12.2008, 21:38
Re: Bank-Time - by LarzI - 10.12.2008, 21:42
Re: Bank-Time - by Soeren - 11.12.2008, 14:58
Re: Bank-Time - by Soeren - 11.12.2008, 21:05
Re: Bank-Time - by SooView - 04.04.2011, 10:15
Re: Bank-Time - by Whizion - 04.04.2011, 11:05

Forum Jump:


Users browsing this thread: 1 Guest(s)