Guest User

Untitled

a guest
May 21st, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. new PosaoVozovodja;
  2.  
  3.  
  4. if (pickupid == PosaoVozovodja)
  5. {
  6. if(IsPlayerInRangeOfPoint(playerid, 3, 2310.7529,-13.9257,26.7421))
  7. {
  8. format(string, sizeof(string),"{D2691E}Tvoj posao bi bio da prevozis putnike/robu sirom zemlje.\n{D2691E}Da bi prihvatio posao, pritisni dugme Prihvati.\n{D2691E}Komande: /vozivoz | /stopvoz");
  9. ShowPlayerDialog(playerid, DIJALOG_VOZOVODJA, DIALOG_STYLE_MSGBOX, "{D2691E}Vozovodja",string, "Prihvati", "Odustani");
  10. }
  11. }
  12.  
  13. if(dialogid == DIJALOG_VOZOVODJA)
  14. {
  15. if(response)
  16. {
  17. if(PlayerInfo[playerid][pPosao] >= 1)
  18. {
  19. SendClientMessage(playerid, NARANDZASTA,"Vec si zaposlen, kucaj prvo /otkaz (/quitjob)");
  20. return 1;
  21. }
  22. if(PlayerInfo[playerid][pPosao] == 0)
  23. {
  24. PlayerInfo[playerid][pPosao] = 2;
  25. SendClientMessage(playerid, NARANDZASTA,"Uspesno si se zaposlio kao Vozovodja, i dobio ugovor na 4 sata.");
  26. SacuvajIgraca(playerid);
  27. }
  28. }
  29. return 1;
  30. }
Add Comment
Please, Sign In to add comment