13.05.2012, 21:28
here are they
i added the reset money too
Код:
public SafeGivePlayerMoney(plyid, amounttogive) { new curHour, curMinute, curSecond; gettime(curHour, curMinute, curSecond); ScriptMoneyUpdated[plyid] = curSecond; if (amounttogive < 0) { GivePlayerMoney(plyid, amounttogive); ScriptMoney[plyid] = (ScriptMoney[plyid] + amounttogive); } else { ScriptMoney[plyid] = (ScriptMoney[plyid] + amounttogive); GivePlayerMoney(plyid, amounttogive); } return 1; } public SafeResetPlayerMoney(plyid) { new curHour, curMinute, curSecond; gettime(curHour, curMinute, curSecond); ScriptMoneyUpdated[plyid] = curSecond; ResetPlayerMoney(plyid); ScriptMoney[plyid] = 0; return 1; }