05.11.2011, 18:34
hi, I making my server rpg mode, and I have a problem with bank time, plz help me
just doesn't work
Код:
forward TimeUpdate(); public TimeUpdate() { worldTime++; worldTime%=24; SetWorldTime(worldTime); minutes=2; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(ShitInfo[i][pBank] == 1) { if(worldTime==6 && minutes==0 && seconds == 1) { GivePlayerECash(i,15); PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0); SendClientMessage(i,COLOR_GREEN, "(!) QUEST 1 COMPLETED REWARD: "); SendClientMessage(i,COLOR_YELLOW, "(!) +15 "); return 1; } } } } return 1; } forward TimeUpdate2(); public TimeUpdate2() { seconds++; seconds%=60; return 1; }