Zmajk0

Untitled

Nov 5th, 2019
183
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. new string1[275],string2[292],string[500];
  2. format(string1,sizeof(string1),""C_ZUTA"- {ffffff}Supa (20$)\n"C_ZUTA"- {ffffff}Pasulj (30$)\n"C_ZUTA"- {ffffff}Riblja Corba (40$)\n"C_ZUTA"- {ffffff}Slovenski Kern's Kulen (60$)\n"C_ZUTA"- {ffffff}Pita od sira (30$)\n"C_ZUTA"- {ffffff}Raznjici (70$)\n");
  3. format(string2,sizeof(string2),""C_ZUTA"- {ffffff}Palacinke (10$)\n"C_ZUTA"- {ffffff}Cvarci (30$)\n"C_ZUTA"- {ffffff}Biftek (90$)\n"C_ZUTA"- {ffffff}Bllade's Proja (50$)\n"C_ZUTA"- {ffffff}Coca-Cola (10$)\n"C_ZUTA"- {ffffff}Viski (100$)\n"C_ZUTA"-. {ffffff}Pivo (10$)\n"C_ZUTA"- {ffffff}Gusti Sok (10$)");
  4. format(string,sizeof(string),"%s%s",string1,string2);
  5. ShowPlayerDialog(playerid,KUPOVINA_RESTORAN,DIALOG_STYLE_LIST,"{ffffff}Restoran - Meni",string,"Jedi","Izlaz");
  6.  
  7.  
  8.  
  9. ////////////////////////////////////////////////
  10. if(dialogid==KUPOVINA_RESTORAN)
  11. {
  12. if(!response) return true;
  13. if(FirmaInfo[BiznisUsao[playerid]][fProizvodi]<=0) return SendClientMessage(playerid,-1,""ZPLAVA"[Biznis]: {ffffff}Nemamo vise proizvoda.");
  14. FirmaInfo[BiznisUsao[playerid]][fProizvodi]--;
  15. new string[50];
  16. switch(listitem)
  17. {
  18. case 0:
  19. {
  20. if(STATS[playerid][pMoney]<20) return SendClientMessage(playerid,GRAD2,"Nemas dovoljno novca 20$.");
  21. BizNovac(BiznisUsao[playerid],20);
  22. FineMoney(playerid,20);
  23. format(string,sizeof(string),"* %s jede supu.",Player_Name(playerid));
  24. ProxDetector(15,playerid,string,PROX,PROX,PROX,PROX,PROX);
  25. OnePlayAnim(playerid,"FOOD","EAT_Burger",3,0,0,0,0,0);
  26. new Float:hp,Float:nhp;
  27. GetPlayerHealth(playerid,hp);
  28. nhp=floatadd(hp,10);
  29. ac_SetPlayerHealth(playerid,nhp);
  30. if(nhp>100.0) ac_SetPlayerHealth(playerid,100);
  31. }
  32. case 1:
  33. {
  34. if(STATS[playerid][pMoney]<30) return SendClientMessage(playerid,GRAD2,"Nemas dovoljno novca 30$.");
  35. BizNovac(BiznisUsao[playerid],30);
  36. FineMoney(playerid,30);
  37. format(string,sizeof(string),"* %s jede pasulj.",Player_Name(playerid));
  38. ProxDetector(15,playerid,string,PROX,PROX,PROX,PROX,PROX);
  39. OnePlayAnim(playerid,"FOOD","EAT_Burger",3,0,0,0,0,0);
  40. new Float:hp,Float:nhp;
  41. GetPlayerHealth(playerid,hp);
  42. nhp=floatadd(hp,10);
  43. ac_SetPlayerHealth(playerid,nhp);
  44. if(nhp>100.0) ac_SetPlayerHealth(playerid,100);
  45. }
  46. case 2:
  47. {
  48. if(STATS[playerid][pMoney]<40) return SendClientMessage(playerid,GRAD2,"Nemas dovoljno novca 40$.");
  49. BizNovac(BiznisUsao[playerid],40);
  50. FineMoney(playerid,40);
  51. format(string,sizeof(string),"* %s jede riblju corbu.",Player_Name(playerid));
  52. ProxDetector(15,playerid,string,PROX,PROX,PROX,PROX,PROX);
  53. OnePlayAnim(playerid,"FOOD","EAT_Burger",3,0,0,0,0,0);
  54. new Float:hp,Float:nhp;
  55. GetPlayerHealth(playerid,hp);
  56. nhp=floatadd(hp,10);
  57. ac_SetPlayerHealth(playerid,nhp);
  58. if(nhp>100.0) ac_SetPlayerHealth(playerid,100);
  59. }
  60. case 3:
  61. {
  62. if(STATS[playerid][pMoney]<60) return SendClientMessage(playerid,GRAD2,"Nemas dovoljno novca 60$.");
  63. BizNovac(BiznisUsao[playerid],60);
  64. FineMoney(playerid,60);
  65. format(string,sizeof(string),"* %s jede slovenski kulen.",Player_Name(playerid));
  66. ProxDetector(15,playerid,string,PROX,PROX,PROX,PROX,PROX);
  67. OnePlayAnim(playerid,"FOOD","EAT_Burger",3,0,0,0,0,0);
  68. new Float:hp,Float:nhp;
  69. GetPlayerHealth(playerid,hp);
  70. nhp=floatadd(hp,10);
  71. ac_SetPlayerHealth(playerid,nhp);
  72. if(nhp>100.0) ac_SetPlayerHealth(playerid,100);
  73. }
  74. case 4:
  75. {
  76. if(STATS[playerid][pMoney]<30) return SendClientMessage(playerid,GRAD2,"Nemas dovoljno novca 30$.");
  77. BizNovac(BiznisUsao[playerid],30);
  78. FineMoney(playerid,30);
  79. format(string,sizeof(string),"* %s jede pitu od sira.",Player_Name(playerid));
  80. ProxDetector(15,playerid,string,PROX,PROX,PROX,PROX,PROX);
  81. OnePlayAnim(playerid,"FOOD","EAT_Burger",3,0,0,0,0,0);
  82. new Float:hp,Float:nhp;
  83. GetPlayerHealth(playerid,hp);
  84. nhp=floatadd(hp,10);
  85. ac_SetPlayerHealth(playerid,nhp);
  86. if(nhp>100.0) ac_SetPlayerHealth(playerid,100);
  87. }
  88. case 5:
  89. {
  90. if(STATS[playerid][pMoney]<70) return SendClientMessage(playerid,GRAD2,"Nemas dovoljno novca 70$.");
  91. BizNovac(BiznisUsao[playerid],70);
  92. FineMoney(playerid,70);
  93. format(string,sizeof(string),"* %s jede raznjice.",Player_Name(playerid));
  94. ProxDetector(15,playerid,string,PROX,PROX,PROX,PROX,PROX);
  95. OnePlayAnim(playerid,"FOOD","EAT_Burger",3,0,0,0,0,0);
  96. new Float:hp,Float:nhp;
  97. GetPlayerHealth(playerid,hp);
  98. nhp=floatadd(hp,10);
  99. ac_SetPlayerHealth(playerid,nhp);
  100. if(nhp>100.0) ac_SetPlayerHealth(playerid,100);
  101. }
  102. case 6:
  103. {
  104. if(STATS[playerid][pMoney]<10) return SendClientMessage(playerid,GRAD2,"Nemas dovoljno novca 10$.");
  105. BizNovac(BiznisUsao[playerid],10);
  106. FineMoney(playerid,10);
  107. format(string,sizeof(string),"* %s jede palacinke.",Player_Name(playerid));
  108. ProxDetector(15,playerid,string,PROX,PROX,PROX,PROX,PROX);
  109. OnePlayAnim(playerid,"FOOD","EAT_Burger",3,0,0,0,0,0);
  110. new Float:hp,Float:nhp;
  111. GetPlayerHealth(playerid,hp);
  112. nhp=floatadd(hp,10);
  113. ac_SetPlayerHealth(playerid,nhp);
  114. if(nhp>100.0) ac_SetPlayerHealth(playerid,100);
  115. }
  116. case 7:
  117. {
  118. if(STATS[playerid][pMoney]<30) return SendClientMessage(playerid,GRAD2,"Nemas dovoljno novca 30$.");
  119. BizNovac(BiznisUsao[playerid],30);
  120. FineMoney(playerid,30);
  121. format(string,sizeof(string),"* %s jede cvarke.",Player_Name(playerid));
  122. ProxDetector(15,playerid,string,PROX,PROX,PROX,PROX,PROX);
  123. OnePlayAnim(playerid,"FOOD","EAT_Burger",3,0,0,0,0,0);
  124. new Float:hp,Float:nhp;
  125. GetPlayerHealth(playerid,hp);
  126. nhp=floatadd(hp,10);
  127. ac_SetPlayerHealth(playerid,nhp);
  128. if(nhp>100.0) ac_SetPlayerHealth(playerid,100);
  129. }
  130. case 8:
  131. {
  132. if(STATS[playerid][pMoney]<90) return SendClientMessage(playerid,GRAD2,"Nemas dovoljno novca 90$.");
  133. BizNovac(BiznisUsao[playerid],90);
  134. FineMoney(playerid,90);
  135. format(string,sizeof(string),"* %s jede biftek.",Player_Name(playerid));
  136. ProxDetector(15,playerid,string,PROX,PROX,PROX,PROX,PROX);
  137. OnePlayAnim(playerid,"FOOD","EAT_Burger",3,0,0,0,0,0);
  138. new Float:hp,Float:nhp;
  139. GetPlayerHealth(playerid,hp);
  140. nhp=floatadd(hp,10);
  141. ac_SetPlayerHealth(playerid,nhp);
  142. if(nhp>100.0) ac_SetPlayerHealth(playerid,100);
  143. }
  144. case 9:
  145. {
  146. if(STATS[playerid][pMoney]<50) return SendClientMessage(playerid,GRAD2,"Nemas dovoljno novca 50$.");
  147. BizNovac(BiznisUsao[playerid],50);
  148. FineMoney(playerid,50);
  149. format(string,sizeof(string),"* %s jede proju.",Player_Name(playerid));
  150. ProxDetector(15,playerid,string,PROX,PROX,PROX,PROX,PROX);
  151. OnePlayAnim(playerid,"FOOD","EAT_Burger",3,0,0,0,0,0);
  152. new Float:hp,Float:nhp;
  153. GetPlayerHealth(playerid,hp);
  154. nhp=floatadd(hp,10);
  155. ac_SetPlayerHealth(playerid,nhp);
  156. if(nhp>100.0) ac_SetPlayerHealth(playerid,100);
  157. }
  158. case 10:
  159. {
  160. if(STATS[playerid][pMoney]<10) return SendClientMessage(playerid,GRAD2,"Nemas dovoljno novca 10$.");
  161. BizNovac(BiznisUsao[playerid],10);
  162. FineMoney(playerid,10);
  163. format(string,sizeof(string),"* %s pije coca colu.",Player_Name(playerid));
  164. ProxDetector(15,playerid,string,PROX,PROX,PROX,PROX,PROX);
  165. ac_SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_SPRUNK);
  166. }
  167. case 11:
  168. {
  169. if(STATS[playerid][pMoney]<100) return SendClientMessage(playerid,GRAD2,"Nemas dovoljno novca 100$.");
  170. BizNovac(BiznisUsao[playerid],100);
  171. FineMoney(playerid,100);
  172. format(string,sizeof(string),"* %s pije viski.",Player_Name(playerid));
  173. ProxDetector(15,playerid,string,PROX,PROX,PROX,PROX,PROX);
  174. ac_SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_WINE);
  175. }
  176. case 12:
  177. {
  178. if(STATS[playerid][pMoney]<10) return SendClientMessage(playerid,GRAD2,"Nemas dovoljno novca 10$.");
  179. BizNovac(BiznisUsao[playerid],10);
  180. FineMoney(playerid,10);
  181. format(string,sizeof(string),"* %s pije pivo.",Player_Name(playerid));
  182. ProxDetector(15,playerid,string,PROX,PROX,PROX,PROX,PROX);
  183. ac_SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
  184. }
  185. case 13:
  186. {
  187. if(STATS[playerid][pMoney]<10) return SendClientMessage(playerid,GRAD2,"Nemas dovoljno novca 10$.");
  188. BizNovac(BiznisUsao[playerid],10);
  189. FineMoney(playerid,10);
  190. format(string,sizeof(string),"* %s pije gusti sok.",Player_Name(playerid));
  191. ProxDetector(15,playerid,string,PROX,PROX,PROX,PROX,PROX);
  192. ac_SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_SPRUNK);
  193. }
  194. }
  195. }
RAW Paste Data