Advertisement
Guest User

Untitled

a guest
May 29th, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. case DIALOG_JAILMENU: {
  2. if(!response)
  3. return 1;
  4.  
  5. if(PlayerInfo[playerid][pJailTime] < 1)
  6. return 1;
  7.  
  8. switch(listitem) {
  9. case 0: {
  10. if(PlayerToPoint(50.0, playerid, -34.6773,2506.8154,17.2725))
  11. return SCM(playerid, COLOR_GRAD3, "Esti deja in curtea inchisorii!");
  12.  
  13. if(GetPlayerCash(playerid) < 30000)
  14. return SCM(playerid, COLOR_GRAD3, "Nu ai suma necesara de bani!");
  15.  
  16. SetPlayerPosEx(playerid, -34.6773,2506.8154,17.2725);
  17. GivePlayerCash(playerid, -30000);
  18. SCM(playerid, COLOR_GRAD3, "Ai platit $30,000 pentru a intra in curtea inchisorii!");
  19. }
  20. case 1: {
  21. if(GetPlayerCash(playerid) < 350000)
  22. return SCM(playerid, COLOR_GRAD3, "Nu ai suma necesara de bani!");
  23.  
  24. PlayerInfo[playerid][pJailTime] = 1;
  25. PlayerInfo[playerid][pJailed] = 1;
  26. GivePlayerCash(playerid, -700000);
  27. SCM(playerid, COLOR_GRAD3, "Ai platit $700,000 pentru a iesi din inchisoare!");
  28. }
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement