Advertisement
Guest User

Untitled

a guest
Apr 15th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. case DIALOG_FISH: {
  2. if(!response) return 1;
  3. new money = HaveFish[playerid] * 1000 + random(200) + 100 * GetPlayerSkill(playerid);
  4. if(PlayerInfo[playerid][pPremiumAccount] == 1) money += money/2;
  5. format(string, sizeof(string), "Ai primit $%s!", FormatNumber(money));
  6. SendClientMessage(playerid, COLOR_MONEY, string);
  7. format(string, sizeof(string), "%s a primit $%s pentru munca efectuata la job-ul %s.", GetName(playerid), FormatNumber(money), JobInfo[PlayerInfo[playerid][pJob]][jName]);
  8. InsertLog(playerid, string, LOG_MONEY);
  9. GivePlayerCash(playerid, money);
  10. HaveFish[playerid] = 0;
  11. PlayerInfo[playerid][pFishSkill] ++;
  12. Update(playerid, pFishSkillx);
  13. if(PlayerInfo[playerid][pFishSkill] == 50)
  14. { SendClientMessage(playerid, COLOR_YELLOW, "* Skillul tau la jobul Pescar, este acum 2. Vei primi mai multi bani si vei putea lua mai multe kilograme."); }
  15. else if(PlayerInfo[playerid][pFishSkill] == 100)
  16. { SendClientMessage(playerid, COLOR_YELLOW, "* Skillul tau la jobul Pescar, este acum 3. Vei primi mai multi bani si vei putea lua mai multe kilograme."); }
  17. else if(PlayerInfo[playerid][pFishSkill] == 200)
  18. { SendClientMessage(playerid, COLOR_YELLOW, "* Skillul tau la jobul Pescar, este acum 4. Vei primi mai multi bani si vei putea lua mai multe kilograme."); }
  19. else if(PlayerInfo[playerid][pFishSkill] == 400)
  20. { SendClientMessage(playerid, COLOR_YELLOW, "* Skillul tau la jobul Pescar, este acum 5. Vei primi mai multi bani si vei putea lua mai multe kilograme."); }
  21. if(togjob[playerid] == 0) JobProgress(playerid); //ACEASTA LINIE.
  22. if(GetPlayerSkill(playerid) == 6) finishAchievement(playerid, 0);
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement