30.11.2016, 20:37
Quero configurar o tanto de dinheiro por payday aonde eu edito?
Quote:
public SyncTime() { new string[64]; new tmphour; new tmpminute; new tmpsecond; gettime(tmphour, tmpminute, tmpsecond); Fixhour(tmphour); tmphour = shifthour; if ((tmphour > ghour) || (tmphour == 0 && ghour == 23)) { format(string, sizeof(string), "[BKN]: Agora sгo %d:00 horas",shifthour); BroadCast(0x1583F0AA,string); ghour = tmphour; PayDay(); SetHora(); } } public GetClosestPlayer(p1) { new x,Float:dis,Float:dis2,player; player = -1; dis = 99999.99; for (x=0;x<MaiorID;x++) { if(IsPlayerConnected(x)) { if(x != p1) { dis2 = GetDistanceBetweenPlayers(x,p1); if(dis2 < dis && dis2 != -1.00) { dis = dis2; player = x; } } } } return player; } public Production() { for(new i = 0; i < MaiorID; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[i][pFishes] >= 5) { if(FishCornt[i] >= 3) { PlayerInfo[i][pFishes] = 0; } else { FishCornt[i] += 1; } } if(PlayerDrunk[i] > 0) { PlayerDrunk[i] = 0; PlayerDrunkTime[i] = 0; SetPlayerDrunkLevel (i, 0); GameTextForPlayer(i, "~w~O efeito da bebida~n~~b~acabou", 3500, 1); } if(PlayerInfo[i][pPayDay] < 6) { PlayerInfo[i][pPayDay] += 1; } //+ 5 min to PayDay anti-abuse if(WantedPoints[i] > 0) { /* WantedPoints[i] -= 1; SetPlayerWantedLevel(i, WantedPoints[i]); */ format(gstring, sizeof(gstring), "Nнvel de procurado:{00EAEA} %d", WantedPoints[i]); SendClientMessage(i, 0xFEBF01FF, gstring); } } } } public PayDay() { new Conta,interest; new rent = 0; new string[128]; for(new i = 0; i < MaiorID; i++) { if(IsPlayerConnected(i) && !IsPlayerNPC(i)) { if(PlayerInfo[i][pLevel] > 0) { if(MoneyMessage[i]==1) { SendClientMessage(i, COLOR_LIGHTRED, "Vocк nгo pagou a sua dнvida e foi preso."); GameTextForPlayer(i, "~r~Preso!", 2000, 1); SetPlayerInterior(i, 6); SetPlayerPos(i, 264.6288,77.5742,1001.0391); PlayerInfo[i][pJailed] = 1; ResetPlayerWeapons(i); WantedPoints[i] = 0; PlayerInfo[i][pAjustado] = 0; SetPlayerWantedLevel(i, 0); PlayerInfo[i][pJailTime] = 600; format(string, sizeof(string), "Vocк foi preso por %d segundos.", PlayerInfo[i][pJailTime]); SendClientMessage(i, COLOR_LIGHTBLUE, string); //ProcuradoPlayer(i); } |