Posts: 59
Threads: 21
Joined: May 2013
Reputation:
0
Hello
I wanted to know how to make an PayDay witch give players 100 Dollars each day at 6:00 AM
But the players should be in Bank/Atm or they won't receive it
Posts: 141
Threads: 14
Joined: Feb 2013
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);
}
}
Posts: 1,003
Threads: 31
Joined: Jul 2013
Reputation:
0
We're not magicians to find out more details/in-depth about your ATM/bank system