04.04.2011, 11:05
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;
}

