Guest User

ff

a guest
Jan 28th, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.41 KB | None | 0 0
  1. //====================================================fastfood jadenje====
  2. if(dialogid == FASTFOODJADENJE)
  3. {
  4. if(response)
  5. {
  6. if(listitem == 0) //
  7. {
  8. SendClientMessage(playerid, COLOR_GREEN, "Jadete pomfrit ! ");
  9. new Float:health;
  10. GetPlayerHealth(playerid, health);
  11. SetPlayerHealth(playerid, health+20);
  12. GivePlayerMoney(playerid, -20);
  13. ApplyAnimation(playerid,"FOOD","EAT_Pizza",4.1,0,0,0,0,0);
  14. GetPlayerName(playerid, sendername, sizeof(sendername));
  15. format(string, sizeof(string), "%s Jadete kromid.", sendername);
  16. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  17. //SetPlayerChatBubble(playerid, string, COLOR_PURPLE, 100.0, 5000);
  18. }
  19. if(listitem == 1) //
  20. {
  21. SendClientMessage(playerid, COLOR_GREEN, "Jadete tost ! ");
  22. new Float:health;
  23. GetPlayerHealth(playerid, health);
  24. SetPlayerHealth(playerid, health+25);
  25. GivePlayerMoney(playerid, -25);
  26. ApplyAnimation(playerid,"FOOD","EAT_Pizza",4.1,0,0,0,0,0);
  27. GetPlayerName(playerid, sendername, sizeof(sendername));
  28. format(string, sizeof(string), "%s jade peceno pile.", sendername);
  29. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  30. //SetPlayerChatBubble(playerid, string, COLOR_PURPLE, 100.0, 5000);
  31. }
  32. if(listitem == 2) //
  33. {
  34. SendClientMessage(playerid, COLOR_GREEN, "Jadete hotdog ! ");
  35. new Float:health;
  36. GetPlayerHealth(playerid, health);
  37. SetPlayerHealth(playerid, health+30);
  38. GivePlayerMoney(playerid, -30);
  39. ApplyAnimation(playerid,"FOOD","EAT_Pizza",4.1,0,0,0,0,0);
  40. GetPlayerName(playerid, sendername, sizeof(sendername));
  41. format(string, sizeof(string), "%s jade peceni kompiri.", sendername);
  42. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  43. //SetPlayerChatBubble(playerid, string, COLOR_PURPLE, 100.0, 5000);
  44. }
  45. if(listitem == 3) //
  46. {
  47. SendClientMessage(playerid, COLOR_GREEN, "Jadete cheese burger ! ");
  48. new Float:health;
  49. GetPlayerHealth(playerid, health);
  50. SetPlayerHealth(playerid, health+35);
  51. GivePlayerMoney(playerid, -40);
  52. ApplyAnimation(playerid,"FOOD","EAT_Pizza",4.1,0,0,0,0,0);
  53. GetPlayerName(playerid, sendername, sizeof(sendername));
  54. format(string, sizeof(string), "%s jade sopska salata.", sendername);
  55. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  56. //SetPlayerChatBubble(playerid, string, COLOR_PURPLE, 100.0, 5000);
  57. }
  58. if(listitem == 4) //
  59. {
  60. SendClientMessage(playerid, COLOR_GREEN, "Jadete hamburger ! ");
  61. new Float:health;
  62. GetPlayerHealth(playerid, health);
  63. SetPlayerHealth(playerid, health+40);
  64. GivePlayerMoney(playerid, -50);
  65. ApplyAnimation(playerid,"FOOD","EAT_Pizza",4.1,0,0,0,0,0);
  66. GetPlayerName(playerid, sendername, sizeof(sendername));
  67. format(string, sizeof(string), "%s jade tost.", sendername);
  68. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  69. //SetPlayerChatBubble(playerid, string, COLOR_PURPLE, 100.0, 5000);
  70. }
  71. }
  72. }
Advertisement
Add Comment
Please, Sign In to add comment