Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function UpdateJobStats(playerid) {
- new i = playerid, string[300];
- if(JobWorking[i] == 1 && PlayerInfo[i][pShowJob] == 1 && PlayerInfo[i][pShowHud] == 0) {
- switch(PlayerInfo[i][pJob]) {
- case 1: {
- if(GetPlayerSkill(playerid) == 5) {
- format(string, sizeof(string), "Ai skill %d si ai muncit de %d ori.~n~Ai skill maxim la acest job.~n~Mai trebuie sa muncesti inca %d secunde.~n~Muncitori la datorie: %d.",
- GetPlayerSkill(i), PlayerInfo[i][pFarmerSkill], JobSeconds[i], GetJobWorkers(1));
- }
- else {
- format(string, sizeof(string), "Ai skill %d si ai muncit de %d ori.~n~Pentru a avansa, ai nevoie de inca %d puncte.~n~Mai trebuie sa muncesti inca %d secunde.~n~Muncitori la datorie: %d.",
- GetPlayerSkill(i), PlayerInfo[i][pFarmerSkill], GetNeedPoints(i, PlayerInfo[i][pJob])-PlayerInfo[i][pFarmerSkill], JobSeconds[i], GetJobWorkers(1));
- }
- PlayerTextDrawSetString(i, JobTD, string);
- PlayerTextDrawShow(i, JobTD);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement