PayDay
#4

Quote:
Originally Posted by MellowHammer
Посмотреть сообщение
pawn Код:
new hour, minute;
GetPlayerTime(playerid, hour, minute);
if(hour == 6 && minute == 0 && GetPlayerInterior(playerid) == BANK_INTERIOR_ID_GOES_HERE)
{
   GivePlayerMoney(playerid, 100);
}
Not entirely sure about detecting whether or not the player is near an ATM.
Simply for the ATM:

pawn Код:
if IsPlayerInRangeOfPoint(playerid, 3, atmX, atmY, atmZ)
{
    if(PaydayPassed[playerid] == 1)
    { // define this somewhere: "new PaydayPassed[MAX_PLAYERS];" and when it's payday set the value to one, then after 40 mins set it to 0.
        SendClientMessage(playerid, -1, "You have a cheque awaiting you from the last payday, pick it up!");
        GivePlayerMoney(playerid, 100);
    }
}
Reply


Messages In This Thread
PayDay - by KimSangBum - 27.07.2013, 01:10
Re : PayDay - by KimSangBum - 27.07.2013, 11:39
Re: PayDay - by MellowHammer - 27.07.2013, 12:00
Re: PayDay - by Mitchy - 27.07.2013, 12:38
Re: PayDay - by Sublime - 27.07.2013, 12:41
AW: Re: PayDay - by Skimmer - 27.07.2013, 12:44

Forum Jump:


Users browsing this thread: 1 Guest(s)