19.07.2015, 12:17
PHP код:
forward OnPlayerInBank(playerid);
public OnPlayerInBank(playerid)
{
new hour, minutes;
GetPlayerTime(playerid, hour, minutes);
if(inbank[playerid] == 1)
{
if(hour == 13 && minutes == 00)
{
foreach(new i:Player)
{
SendClientMessage(i, COLOR_WHITE, "The bank paid you 15 DCash!");
GivePlayerMoney(i, 15);
}
}
}
return 1;
}