Advertisement
Guest User

Serbian Version

a guest
Mar 24th, 2019
574
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.54 KB | None | 0 0
  1. /*Filterscript by Vasic * Credits to Zeex & Y_Less & Incognito*/
  2. /*[Bilo kakve bugove mi prijavite u PM!]*/
  3. /*Facebook: Vasic Script*/
  4.  
  5. #include < a_samp >
  6. #include < YSI\y_ini >
  7. #include < zcmd >
  8. #include < streamer >
  9. #include < sscanf2 >
  10.  
  11. #define FF_OBJEKAT 1342
  12. #define FF_FILE "Food/%d.ini"
  13. #define MAX_FF 100
  14. enum fFood {
  15. fMaked,
  16. Float:fX,
  17. Float:fY,
  18. Float:fZ,
  19. Float:fAngle,
  20. fObjekat,
  21. fInt,
  22. fVW
  23. }
  24. new FFInfo[ MAX_FF ][ fFood ];
  25. new Text3D:fLabel[sizeof(FFInfo)];
  26. new EditFF[MAX_PLAYERS];
  27.  
  28. new PlayerText:hranatd0[MAX_PLAYERS];
  29. new PlayerText:hranatd1[MAX_PLAYERS];
  30. new PlayerText:hranatd2[MAX_PLAYERS];
  31. new PlayerText:hranatd3[MAX_PLAYERS];
  32. new PlayerText:hranatd4[MAX_PLAYERS];
  33. new PlayerText:hranatd5[MAX_PLAYERS];
  34. new PlayerText:hranatd6[MAX_PLAYERS];
  35. new PlayerText:hranatd7[MAX_PLAYERS];
  36. new PlayerText:hranatd8[MAX_PLAYERS];
  37. new PlayerText:hranatd9[MAX_PLAYERS];
  38. new PlayerText:hranatd10[MAX_PLAYERS];
  39. new PlayerText:hranatd11[MAX_PLAYERS];
  40. new PlayerText:hranatd12[MAX_PLAYERS];
  41. new PlayerText:hranatd13[MAX_PLAYERS];
  42. new PlayerText:hranatd14[MAX_PLAYERS];
  43. new PlayerText:hranatd15[MAX_PLAYERS];
  44. new PlayerText:hranatd16[MAX_PLAYERS];
  45.  
  46. stock CTDS(playerid)
  47. {
  48. hranatd0[playerid] = CreatePlayerTextDraw(playerid, 464.222229, 98.462959, "usebox");
  49. PlayerTextDrawLetterSize(playerid, hranatd0[playerid], 0.000000, 23.938478);
  50. PlayerTextDrawTextSize(playerid, hranatd0[playerid], 172.444442, 0.000000);
  51. PlayerTextDrawAlignment(playerid, hranatd0[playerid], 1);
  52. PlayerTextDrawColor(playerid, hranatd0[playerid], 0);
  53. PlayerTextDrawUseBox(playerid, hranatd0[playerid], true);
  54. PlayerTextDrawBoxColor(playerid, hranatd0[playerid], 102);
  55. PlayerTextDrawSetShadow(playerid, hranatd0[playerid], 0);
  56. PlayerTextDrawSetOutline(playerid, hranatd0[playerid], 0);
  57. PlayerTextDrawFont(playerid, hranatd0[playerid], 0);
  58.  
  59. hranatd1[playerid] = CreatePlayerTextDraw(playerid, 421.110931, 300.222290, "Izlaz");
  60. PlayerTextDrawLetterSize(playerid, hranatd1[playerid], 0.449999, 1.600000);
  61. PlayerTextDrawAlignment(playerid, hranatd1[playerid], 1);
  62. PlayerTextDrawColor(playerid, hranatd1[playerid], -1);
  63. PlayerTextDrawSetShadow(playerid, hranatd1[playerid], 0);
  64. PlayerTextDrawSetOutline(playerid, hranatd1[playerid], 1);
  65. PlayerTextDrawBackgroundColor(playerid, hranatd1[playerid], 51);
  66. PlayerTextDrawFont(playerid, hranatd1[playerid], 3);
  67. PlayerTextDrawSetProportional(playerid, hranatd1[playerid], 1);
  68. PlayerTextDrawSetSelectable(playerid, hranatd1[playerid], true);
  69.  
  70. hranatd2[playerid] = CreatePlayerTextDraw(playerid, 221.666702, 108.370384, "Brza Hrana - ~w~Odaberite");
  71. PlayerTextDrawLetterSize(playerid, hranatd2[playerid], 0.449999, 1.600000);
  72. PlayerTextDrawAlignment(playerid, hranatd2[playerid], 1);
  73. PlayerTextDrawColor(playerid, hranatd2[playerid], -1);
  74. PlayerTextDrawSetShadow(playerid, hranatd2[playerid], 0);
  75. PlayerTextDrawSetOutline(playerid, hranatd2[playerid], 1);
  76. PlayerTextDrawBackgroundColor(playerid, hranatd2[playerid], 51);
  77. PlayerTextDrawFont(playerid, hranatd2[playerid], 3);
  78. PlayerTextDrawSetProportional(playerid, hranatd2[playerid], 1);
  79.  
  80. hranatd3[playerid] = CreatePlayerTextDraw(playerid, 218.333343, 124.444450, "LD_SPAC:white");
  81. PlayerTextDrawLetterSize(playerid, hranatd3[playerid], 0.000000, 0.000000);
  82. PlayerTextDrawTextSize(playerid, hranatd3[playerid], 196.666656, 0.518516);
  83. PlayerTextDrawAlignment(playerid, hranatd3[playerid], 1);
  84. PlayerTextDrawColor(playerid, hranatd3[playerid], -16776961);
  85. PlayerTextDrawSetShadow(playerid, hranatd3[playerid], 0);
  86. PlayerTextDrawSetOutline(playerid, hranatd3[playerid], 0);
  87. PlayerTextDrawFont(playerid, hranatd3[playerid], 4);
  88. PlayerTextDrawSetSelectable(playerid, hranatd3[playerid], true);
  89.  
  90. hranatd4[playerid] = CreatePlayerTextDraw(playerid, 194.444366, 113.037040, "BURGprwmodel");
  91. PlayerTextDrawLetterSize(playerid, hranatd4[playerid], 0.449999, 1.600000);
  92. PlayerTextDrawTextSize(playerid, hranatd4[playerid], 81.111137, 96.444450);
  93. PlayerTextDrawAlignment(playerid, hranatd4[playerid], 1);
  94. PlayerTextDrawBackgroundColor(playerid,hranatd4[playerid], 0);
  95. PlayerTextDrawColor(playerid, hranatd4[playerid], -1);
  96. PlayerTextDrawUseBox(playerid, hranatd4[playerid], true);
  97. PlayerTextDrawBoxColor(playerid, hranatd4[playerid], 0);
  98. PlayerTextDrawSetShadow(playerid, hranatd4[playerid], 0);
  99. PlayerTextDrawSetOutline(playerid, hranatd4[playerid], 1);
  100. PlayerTextDrawFont(playerid, hranatd4[playerid], 5);
  101. PlayerTextDrawSetProportional(playerid, hranatd4[playerid], 1);
  102. PlayerTextDrawSetSelectable(playerid, hranatd4[playerid], true);
  103. PlayerTextDrawSetPreviewModel(playerid, hranatd4[playerid], 2880);
  104. PlayerTextDrawSetPreviewRot(playerid, hranatd4[playerid], 218.000000, 100.000000, -30.000000, 1.000000);
  105.  
  106. hranatd5[playerid] = CreatePlayerTextDraw(playerid, 308.888793, 117.703704, "PIZZAprwmodel");
  107. PlayerTextDrawLetterSize(playerid, hranatd5[playerid], 0.449999, 1.600000);
  108. PlayerTextDrawBackgroundColor(playerid,hranatd5[playerid], 0);
  109. PlayerTextDrawTextSize(playerid, hranatd5[playerid], 70.555557, 85.555564);
  110. PlayerTextDrawAlignment(playerid, hranatd5[playerid], 1);
  111. PlayerTextDrawColor(playerid, hranatd5[playerid], -1);
  112. PlayerTextDrawUseBox(playerid, hranatd5[playerid], true);
  113. PlayerTextDrawBoxColor(playerid, hranatd5[playerid], 0);
  114. PlayerTextDrawSetShadow(playerid, hranatd5[playerid], 0);
  115. PlayerTextDrawSetOutline(playerid, hranatd5[playerid], 1);
  116. PlayerTextDrawFont(playerid, hranatd5[playerid], 5);
  117. PlayerTextDrawSetProportional(playerid, hranatd5[playerid], 1);
  118. PlayerTextDrawSetSelectable(playerid, hranatd5[playerid], true);
  119. PlayerTextDrawSetPreviewModel(playerid, hranatd5[playerid], 19580);
  120. PlayerTextDrawSetPreviewRot(playerid, hranatd5[playerid], 243.000000, 0.000000, 0.000000, 1.000000);
  121.  
  122. hranatd6[playerid] = CreatePlayerTextDraw(playerid, 232.222213, 161.777770, "BURG2prwmodel");
  123. PlayerTextDrawLetterSize(playerid, hranatd6[playerid], 0.449999, 1.600000);
  124. PlayerTextDrawTextSize(playerid, hranatd6[playerid], 81.111137, 96.444450);
  125. PlayerTextDrawAlignment(playerid, hranatd6[playerid], 1);
  126. PlayerTextDrawBackgroundColor(playerid,hranatd6[playerid], 0);
  127. PlayerTextDrawColor(playerid, hranatd6[playerid], -1);
  128. PlayerTextDrawUseBox(playerid, hranatd6[playerid], true);
  129. PlayerTextDrawBoxColor(playerid, hranatd6[playerid], 0);
  130. PlayerTextDrawSetShadow(playerid, hranatd6[playerid], 0);
  131. PlayerTextDrawSetOutline(playerid, hranatd6[playerid], 1);
  132. PlayerTextDrawFont(playerid, hranatd6[playerid], 5);
  133. PlayerTextDrawSetProportional(playerid, hranatd6[playerid], 1);
  134. PlayerTextDrawSetSelectable(playerid, hranatd6[playerid], true);
  135. PlayerTextDrawSetPreviewModel(playerid, hranatd6[playerid], 19094);
  136. PlayerTextDrawSetPreviewRot(playerid, hranatd6[playerid], 342.000000, -90.000000, 20.000000, 1.000000);
  137.  
  138. hranatd7[playerid] = CreatePlayerTextDraw(playerid, 307.777801, 168.518554, "BURG3prwmodel");
  139. PlayerTextDrawLetterSize(playerid, hranatd7[playerid], 0.449999, 1.600000);
  140. PlayerTextDrawTextSize(playerid, hranatd7[playerid], 93.888893, 82.444450);
  141. PlayerTextDrawAlignment(playerid, hranatd7[playerid], 1);
  142. PlayerTextDrawBackgroundColor(playerid,hranatd7[playerid], 0);
  143. PlayerTextDrawColor(playerid, hranatd7[playerid], -1);
  144. PlayerTextDrawUseBox(playerid, hranatd7[playerid], true);
  145. PlayerTextDrawBoxColor(playerid, hranatd7[playerid], 0);
  146. PlayerTextDrawSetShadow(playerid, hranatd7[playerid], 0);
  147. PlayerTextDrawSetOutline(playerid, hranatd7[playerid], 1);
  148. PlayerTextDrawFont(playerid, hranatd7[playerid], 5);
  149. PlayerTextDrawSetProportional(playerid, hranatd7[playerid], 1);
  150. PlayerTextDrawSetSelectable(playerid, hranatd7[playerid], true);
  151. PlayerTextDrawSetPreviewModel(playerid, hranatd7[playerid], 2768);
  152. PlayerTextDrawSetPreviewRot(playerid, hranatd7[playerid], 183.000000, 0.000000, 0.000000, 1.000000);
  153.  
  154. hranatd8[playerid] = CreatePlayerTextDraw(playerid, 240.555541, 226.074050, "PICEprwmodel");
  155. PlayerTextDrawLetterSize(playerid, hranatd8[playerid], 0.449999, 1.600000);
  156. PlayerTextDrawTextSize(playerid, hranatd8[playerid], 66.111122, 88.148147);
  157. PlayerTextDrawAlignment(playerid, hranatd8[playerid], 1);
  158. PlayerTextDrawColor(playerid, hranatd8[playerid], -1);
  159. PlayerTextDrawUseBox(playerid, hranatd8[playerid], true);
  160. PlayerTextDrawBoxColor(playerid, hranatd8[playerid], 0);
  161. PlayerTextDrawBackgroundColor(playerid,hranatd8[playerid], 0);
  162. PlayerTextDrawSetShadow(playerid, hranatd8[playerid], 0);
  163. PlayerTextDrawSetOutline(playerid, hranatd8[playerid], 1);
  164. PlayerTextDrawFont(playerid, hranatd8[playerid], 5);
  165. PlayerTextDrawSetProportional(playerid, hranatd8[playerid], 1);
  166. PlayerTextDrawSetSelectable(playerid, hranatd8[playerid], true);
  167. PlayerTextDrawSetPreviewModel(playerid,hranatd8[playerid], 1520);
  168.  
  169. hranatd9[playerid] = CreatePlayerTextDraw(playerid, 326.111053, 242.666732, "PICE2prwmodel");
  170. PlayerTextDrawLetterSize(playerid, hranatd9[playerid], 0.449999, 1.600000);
  171. PlayerTextDrawTextSize(playerid, hranatd9[playerid], 54.444450, 71.555557);
  172. PlayerTextDrawAlignment(playerid, hranatd9[playerid], 1);
  173. PlayerTextDrawColor(playerid, hranatd9[playerid], -1);
  174. PlayerTextDrawUseBox(playerid, hranatd9[playerid], true);
  175. PlayerTextDrawBoxColor(playerid, hranatd9[playerid], 0);
  176. PlayerTextDrawBackgroundColor(playerid,hranatd9[playerid], 0);
  177. PlayerTextDrawSetShadow(playerid, hranatd9[playerid], 0);
  178. PlayerTextDrawSetOutline(playerid, hranatd9[playerid], 1);
  179. PlayerTextDrawFont(playerid, hranatd9[playerid], 5);
  180. PlayerTextDrawSetProportional(playerid, hranatd9[playerid], 1);
  181. PlayerTextDrawSetSelectable(playerid, hranatd9[playerid], true);
  182. PlayerTextDrawSetPreviewModel(playerid, hranatd9[playerid], 1664);
  183.  
  184. hranatd10[playerid] = CreatePlayerTextDraw(playerid, 253.888916, 126.518516, "~g~+4~w~hp");
  185. PlayerTextDrawLetterSize(playerid, hranatd10[playerid], 0.268333, 1.211112);
  186. PlayerTextDrawAlignment(playerid, hranatd10[playerid], 1);
  187. PlayerTextDrawColor(playerid, hranatd10[playerid], -1);
  188. PlayerTextDrawSetShadow(playerid, hranatd10[playerid], 0);
  189. PlayerTextDrawSetOutline(playerid, hranatd10[playerid], 1);
  190. PlayerTextDrawBackgroundColor(playerid, hranatd10[playerid], 51);
  191. PlayerTextDrawFont(playerid, hranatd10[playerid], 2);
  192. PlayerTextDrawSetProportional(playerid, hranatd10[playerid], 1);
  193.  
  194. hranatd11[playerid] = CreatePlayerTextDraw(playerid, 325.555419, 124.962951, "~g~+6~w~hp");
  195. PlayerTextDrawLetterSize(playerid, hranatd11[playerid], 0.281111, 1.190370);
  196. PlayerTextDrawAlignment(playerid, hranatd11[playerid], 1);
  197. PlayerTextDrawColor(playerid, hranatd11[playerid], -1);
  198. PlayerTextDrawSetShadow(playerid, hranatd11[playerid], 0);
  199. PlayerTextDrawSetOutline(playerid, hranatd11[playerid], 1);
  200. PlayerTextDrawBackgroundColor(playerid, hranatd11[playerid], 51);
  201. PlayerTextDrawFont(playerid, hranatd11[playerid], 2);
  202. PlayerTextDrawSetProportional(playerid, hranatd11[playerid], 1);
  203.  
  204. hranatd12[playerid] = CreatePlayerTextDraw(playerid, 255.555603, 181.481475, "~g~+5~w~hp");
  205. PlayerTextDrawLetterSize(playerid, hranatd12[playerid], 0.268888, 1.159259);
  206. PlayerTextDrawAlignment(playerid, hranatd12[playerid], 1);
  207. PlayerTextDrawColor(playerid, hranatd12[playerid], -1);
  208. PlayerTextDrawSetShadow(playerid, hranatd12[playerid], 0);
  209. PlayerTextDrawSetOutline(playerid, hranatd12[playerid], 1);
  210. PlayerTextDrawBackgroundColor(playerid, hranatd12[playerid], 51);
  211. PlayerTextDrawFont(playerid, hranatd12[playerid], 2);
  212. PlayerTextDrawSetProportional(playerid, hranatd12[playerid], 1);
  213.  
  214. hranatd13[playerid] = CreatePlayerTextDraw(playerid, 329.999877, 181.999984, "~g~+10~w~hp");
  215. PlayerTextDrawLetterSize(playerid, hranatd13[playerid], 0.290000, 1.351112);
  216. PlayerTextDrawAlignment(playerid, hranatd13[playerid], 1);
  217. PlayerTextDrawColor(playerid, hranatd13[playerid], -1);
  218. PlayerTextDrawSetShadow(playerid, hranatd13[playerid], 0);
  219. PlayerTextDrawSetOutline(playerid, hranatd13[playerid], 1);
  220. PlayerTextDrawBackgroundColor(playerid, hranatd13[playerid], 51);
  221. PlayerTextDrawFont(playerid, hranatd13[playerid], 2);
  222. PlayerTextDrawSetProportional(playerid, hranatd13[playerid], 1);
  223.  
  224. hranatd14[playerid] = CreatePlayerTextDraw(playerid, 257.222351, 235.925994, "~g~+2~w~hp");
  225. PlayerTextDrawLetterSize(playerid, hranatd14[playerid], 0.251111, 1.351111);
  226. PlayerTextDrawAlignment(playerid, hranatd14[playerid], 1);
  227. PlayerTextDrawColor(playerid, hranatd14[playerid], -1);
  228. PlayerTextDrawSetShadow(playerid, hranatd14[playerid], 0);
  229. PlayerTextDrawSetOutline(playerid, hranatd14[playerid], 1);
  230. PlayerTextDrawBackgroundColor(playerid, hranatd14[playerid], 51);
  231. PlayerTextDrawFont(playerid, hranatd14[playerid], 2);
  232. PlayerTextDrawSetProportional(playerid, hranatd14[playerid], 1);
  233.  
  234. hranatd15[playerid] = CreatePlayerTextDraw(playerid, 334.444305, 236.962982, "~g~+2~w~hp");
  235. PlayerTextDrawLetterSize(playerid, hranatd15[playerid], 0.302777, 1.325185);
  236. PlayerTextDrawAlignment(playerid, hranatd15[playerid], 1);
  237. PlayerTextDrawColor(playerid, hranatd15[playerid], -1);
  238. PlayerTextDrawSetShadow(playerid, hranatd15[playerid], 0);
  239. PlayerTextDrawSetOutline(playerid, hranatd15[playerid], 1);
  240. PlayerTextDrawBackgroundColor(playerid, hranatd15[playerid], 51);
  241. PlayerTextDrawFont(playerid, hranatd15[playerid], 2);
  242. PlayerTextDrawSetProportional(playerid, hranatd15[playerid], 1);
  243.  
  244. hranatd16[playerid] = CreatePlayerTextDraw(playerid, 176.111129, 306.963073, "FastFood by ~w~Vasic");
  245. PlayerTextDrawLetterSize(playerid, hranatd16[playerid], 0.167222, 0.998519);
  246. PlayerTextDrawAlignment(playerid, hranatd16[playerid], 1);
  247. PlayerTextDrawColor(playerid, hranatd16[playerid], -16776961);
  248. PlayerTextDrawSetShadow(playerid, hranatd16[playerid], 0);
  249. PlayerTextDrawSetOutline(playerid, hranatd16[playerid], 1);
  250. PlayerTextDrawBackgroundColor(playerid, hranatd16[playerid], 51);
  251. PlayerTextDrawFont(playerid, hranatd16[playerid], 3);
  252. PlayerTextDrawSetProportional(playerid, hranatd16[playerid], 1);
  253. return 1;
  254. }
  255. main()
  256. {
  257. print("\n----------------------------------");
  258. print(" Blank Gamemode by your name here");
  259. print("----------------------------------\n");
  260. }
  261.  
  262. public OnGameModeInit()
  263. {
  264. for(new i = 0; i < sizeof(FFInfo); i++)
  265. {
  266. new baFile[50];
  267. format(baFile, sizeof(baFile), FF_FILE, i);
  268. if(fexist(baFile))
  269. {
  270. INI_ParseFile(baFile, "LoadFF", .bExtra = true, .extra = i);
  271. new string[80];
  272. format(string, sizeof(string), "{0084e3}[ FastFood %d ]\n{FFFFFF}Da jedete - {0084e3}/jedi", i);
  273. fLabel[i] = CreateDynamic3DTextLabel(string ,-1,FFInfo[i][fX], FFInfo[i][fY], FFInfo[i][fZ],30);
  274. FFInfo[i][fObjekat] = CreateDynamicObject(FF_OBJEKAT, FFInfo[i][fX], FFInfo[i][fY], FFInfo[i][fZ], 0.0, 0.0, FFInfo[i][fAngle], FFInfo[i][fVW], FFInfo[i][fInt], -1, 200.0);
  275. }
  276. }
  277. SetGameModeText("Blank Script");
  278. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  279. return 1;
  280. }
  281.  
  282. public OnGameModeExit()
  283. {
  284. return 1;
  285. }
  286.  
  287. public OnPlayerRequestClass(playerid, classid)
  288. {
  289. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  290. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  291. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  292. return 1;
  293. }
  294.  
  295. public OnPlayerConnect(playerid)
  296. {
  297. SendClientMessage(playerid,-1,"Komande su /makefastfood & /jedi | by Vasic | Ideju dao Fusion Gaming");
  298. EditFF[playerid] = 0; CTDS(playerid);
  299. return 1;
  300. }
  301. forward LoadFF(fid, name[], value[]);
  302. public LoadFF(fid, name[], value[])
  303. {
  304. INI_Int("Maked",FFInfo[fid][fMaked]);
  305. INI_Float("X",FFInfo[fid][fX]);
  306. INI_Float("Y",FFInfo[fid][fY]);
  307. INI_Float("Z",FFInfo[fid][fZ]);
  308. INI_Float("Angle",FFInfo[fid][fAngle]);
  309. INI_Int("Int",FFInfo[fid][fInt]);
  310. INI_Int("VW",FFInfo[fid][fVW]);
  311. return 1;
  312. }
  313. stock SacuvajFF(fid)
  314. {
  315. new kFile[80];
  316. format(kFile, sizeof(kFile), FF_FILE, fid);
  317. new INI:File = INI_Open(kFile);
  318. INI_WriteInt(File,"Maked",FFInfo[fid][fMaked]);
  319. INI_WriteFloat(File,"X",FFInfo[fid][fX]);
  320. INI_WriteFloat(File,"Y",FFInfo[fid][fY]);
  321. INI_WriteFloat(File,"Z",FFInfo[fid][fZ]);
  322. INI_WriteFloat(File,"Angle",FFInfo[fid][fAngle]);
  323. INI_WriteInt(File,"Int",FFInfo[fid][fInt]);
  324. INI_WriteInt(File,"VW",FFInfo[fid][fVW]);
  325. INI_Close(File);
  326. return 1;
  327. }
  328. stock PlayerAtFastFood(playerid)
  329. {
  330. new ffid = 0;
  331. while(ffid != MAX_FF)
  332. {
  333. if(IsPlayerInRangeOfPoint(playerid, 5.0, FFInfo[ffid][fX], FFInfo[ffid][fY], FFInfo[ffid][fZ]))
  334. {
  335. return ffid;
  336. }
  337. ffid++;
  338. }
  339. return -1;
  340. }
  341. stock NextFF()
  342. {
  343. new file[64];
  344. for(new ffid = 0; ffid < MAX_FF; ffid++)
  345. {
  346. format(file, sizeof(file), FF_FILE, ffid);
  347. if(!fexist(file)) return ffid;
  348. }
  349. return true;
  350. }
  351. public OnPlayerEditDynamicObject(playerid, objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
  352. {
  353. if(response == EDIT_RESPONSE_FINAL)
  354. {
  355. if(EditFF[playerid] == 1)
  356. {
  357. new id = NextFF(), Float:angle, string[100];
  358. GetPlayerFacingAngle(playerid, angle);
  359. FFInfo[id][fX] = x;
  360. FFInfo[id][fY] = y;
  361. FFInfo[id][fZ] = z;
  362. FFInfo[id][fAngle] = rz;
  363. DestroyDynamicObject(FFInfo[id][fObjekat]);
  364. //new string[80];
  365. format(string, sizeof(string), "{0084e3}[ FastFood %d ]\n{FFFFFF}Da jedete - {0084e3}/jedi", id);
  366. fLabel[id] = CreateDynamic3DTextLabel(string ,-1,FFInfo[id][fX], FFInfo[id][fY], FFInfo[id][fZ],30);
  367. FFInfo[id][fObjekat] = CreateDynamicObject(FF_OBJEKAT, FFInfo[id][fX], FFInfo[id][fY], FFInfo[id][fZ], 0.0, 0.0, FFInfo[id][fAngle], FFInfo[id][fVW], FFInfo[id][fInt], -1, 200.0);
  368. SacuvajFF(id);
  369. format(string,sizeof(string),"{0084e3}Napravil ste FastFood ID: {FFFFFF}%d",id);
  370. SendClientMessage(playerid,-1,string);
  371. EditFF[playerid] = 0;
  372. return 1;
  373. }
  374. }
  375. return 1;
  376. }
  377. CMD:makefastfood(playerid, params[])
  378. {
  379. new ffid = NextFF(), Float:X2, Float:Y2, Float:Z2, Float:Angle, ffile[60];
  380. GetPlayerPos(playerid, X2, Y2, Z2); GetPlayerFacingAngle(playerid, Angle);
  381. if(EditFF[playerid] == 1) return SendClientMessage(playerid,-1,"Vec pravite FastFood!");
  382. // if(sscanf(params, "i",ffid)) return SendClientMessage(playerid,-1,"{0084e3}/makefastfood {ffffff}(id)");
  383. if(ffid >= MAX_FF) return SendClientMessage(playerid,-1, "Ne mozete kreirati vise FastFood-ova.");
  384. format(ffile, sizeof(ffile), FF_FILE, ffid);
  385. if(fexist(ffile)) return SendClientMessage(playerid,-1,"Isti ID Fastfooda vec postoji.");
  386. EditFF[playerid] = 1;
  387. FFInfo[ffid][fMaked] = 1;
  388. FFInfo[ffid][fX] = X2;
  389. FFInfo[ffid][fY] = Y2;
  390. FFInfo[ffid][fZ] = Z2;
  391. FFInfo[ffid][fAngle] = Angle;
  392. FFInfo[ffid][fInt] = GetPlayerInterior(playerid);
  393. FFInfo[ffid][fVW] = GetPlayerVirtualWorld(playerid);
  394. FFInfo[ffid][fObjekat] = CreateDynamicObject(FF_OBJEKAT, FFInfo[ffid][fX], FFInfo[ffid][fY], FFInfo[ffid][fZ], 0.0, 0.0, FFInfo[ffid][fAngle], FFInfo[ffid][fVW], FFInfo[ffid][fInt], -1, 200.0);
  395. EditDynamicObject(playerid,FFInfo[ffid][fObjekat]);
  396. SendClientMessage(playerid,-1,"{0084e3}Sada postavite Fastfood.");
  397. return 1;
  398. }
  399. CMD:jedi(playerid, params[])
  400. {
  401. if(PlayerAtFastFood(playerid) == -1) return SendClientMessage(playerid,-1,"Morate biti kod FastFooda.");
  402. {
  403. SelectTextDraw(playerid, 0xAA3333AA);
  404. PlayerTextDrawShow(playerid, hranatd0[playerid]);
  405. PlayerTextDrawShow(playerid, hranatd1[playerid]);
  406. PlayerTextDrawShow(playerid, hranatd2[playerid]);
  407. PlayerTextDrawShow(playerid, hranatd3[playerid]);
  408. PlayerTextDrawShow(playerid, hranatd4[playerid]);
  409. PlayerTextDrawShow(playerid, hranatd5[playerid]);
  410. PlayerTextDrawShow(playerid, hranatd6[playerid]);
  411. PlayerTextDrawShow(playerid, hranatd7[playerid]);
  412. PlayerTextDrawShow(playerid, hranatd8[playerid]);
  413. PlayerTextDrawShow(playerid, hranatd9[playerid]);
  414. PlayerTextDrawShow(playerid, hranatd10[playerid]);
  415. PlayerTextDrawShow(playerid, hranatd11[playerid]);
  416. PlayerTextDrawShow(playerid, hranatd12[playerid]);
  417. PlayerTextDrawShow(playerid, hranatd13[playerid]);
  418. PlayerTextDrawShow(playerid, hranatd14[playerid]);
  419. PlayerTextDrawShow(playerid, hranatd15[playerid]);
  420. PlayerTextDrawShow(playerid, hranatd16[playerid]);
  421. }
  422. return 1;
  423. }
  424. public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
  425. {
  426. if( playertextid == hranatd1[ playerid ] )
  427. {
  428. PlayerTextDrawHide(playerid, hranatd0[playerid]);
  429. PlayerTextDrawHide(playerid, hranatd1[playerid]);
  430. PlayerTextDrawHide(playerid, hranatd2[playerid]);
  431. PlayerTextDrawHide(playerid, hranatd3[playerid]);
  432. PlayerTextDrawHide(playerid, hranatd4[playerid]);
  433. PlayerTextDrawHide(playerid, hranatd5[playerid]);
  434. PlayerTextDrawHide(playerid, hranatd6[playerid]);
  435. PlayerTextDrawHide(playerid, hranatd7[playerid]);
  436. PlayerTextDrawHide(playerid, hranatd8[playerid]);
  437. PlayerTextDrawHide(playerid, hranatd9[playerid]);
  438. PlayerTextDrawHide(playerid, hranatd10[playerid]);
  439. PlayerTextDrawHide(playerid, hranatd11[playerid]);
  440. PlayerTextDrawHide(playerid, hranatd12[playerid]);
  441. PlayerTextDrawHide(playerid, hranatd13[playerid]);
  442. PlayerTextDrawHide(playerid, hranatd14[playerid]);
  443. PlayerTextDrawHide(playerid, hranatd15[playerid]);
  444. PlayerTextDrawHide(playerid, hranatd16[playerid]);
  445. CancelSelectTextDraw(playerid);
  446. }
  447. if( playertextid == hranatd4[ playerid ] )
  448. {
  449. new Float:flutic;
  450. GetPlayerHealth(playerid, flutic);
  451. SetPlayerHealth(playerid, flutic+4);
  452. SendClientMessage(playerid, -1, "{FFFFFF}Kupili ste {0084e3}Pljeskavicu{FFFFFF} i dobili ste{0084e3} +4hp.");
  453. ApplyAnimation(playerid, "FOOD", "EAT_Burger",4.1,0,1,1,0,0);
  454. GivePlayerMoney(playerid, -10);
  455. PlayerTextDrawHide(playerid, hranatd0[playerid]);
  456. PlayerTextDrawHide(playerid, hranatd1[playerid]);
  457. PlayerTextDrawHide(playerid, hranatd2[playerid]);
  458. PlayerTextDrawHide(playerid, hranatd3[playerid]);
  459. PlayerTextDrawHide(playerid, hranatd4[playerid]);
  460. PlayerTextDrawHide(playerid, hranatd5[playerid]);
  461. PlayerTextDrawHide(playerid, hranatd6[playerid]);
  462. PlayerTextDrawHide(playerid, hranatd7[playerid]);
  463. PlayerTextDrawHide(playerid, hranatd8[playerid]);
  464. PlayerTextDrawHide(playerid, hranatd9[playerid]);
  465. PlayerTextDrawHide(playerid, hranatd10[playerid]);
  466. PlayerTextDrawHide(playerid, hranatd11[playerid]);
  467. PlayerTextDrawHide(playerid, hranatd12[playerid]);
  468. PlayerTextDrawHide(playerid, hranatd13[playerid]);
  469. PlayerTextDrawHide(playerid, hranatd14[playerid]);
  470. PlayerTextDrawHide(playerid, hranatd15[playerid]);
  471. PlayerTextDrawHide(playerid, hranatd16[playerid]);
  472. CancelSelectTextDraw(playerid);
  473. }
  474. if( playertextid == hranatd5[ playerid ] )
  475. {
  476. SendClientMessage(playerid, -1, "{FFFFFF}Kupili ste {0084e3}Pizzu{FFFFFF} i dobili ste{0084e3} +6hp.");
  477. ApplyAnimation(playerid, "FOOD", "EAT_Pizza",4.1,0,1,1,0,0);
  478. GivePlayerMoney(playerid, -10);
  479. new Float:flutic;
  480. GetPlayerHealth(playerid, flutic);
  481. SetPlayerHealth(playerid, flutic+6);
  482. PlayerTextDrawHide(playerid, hranatd0[playerid]);
  483. PlayerTextDrawHide(playerid, hranatd1[playerid]);
  484. PlayerTextDrawHide(playerid, hranatd2[playerid]);
  485. PlayerTextDrawHide(playerid, hranatd3[playerid]);
  486. PlayerTextDrawHide(playerid, hranatd4[playerid]);
  487. PlayerTextDrawHide(playerid, hranatd5[playerid]);
  488. PlayerTextDrawHide(playerid, hranatd6[playerid]);
  489. PlayerTextDrawHide(playerid, hranatd7[playerid]);
  490. PlayerTextDrawHide(playerid, hranatd8[playerid]);
  491. PlayerTextDrawHide(playerid, hranatd9[playerid]);
  492. PlayerTextDrawHide(playerid, hranatd10[playerid]);
  493. PlayerTextDrawHide(playerid, hranatd11[playerid]);
  494. PlayerTextDrawHide(playerid, hranatd12[playerid]);
  495. PlayerTextDrawHide(playerid, hranatd13[playerid]);
  496. PlayerTextDrawHide(playerid, hranatd14[playerid]);
  497. PlayerTextDrawHide(playerid, hranatd15[playerid]);
  498. PlayerTextDrawHide(playerid, hranatd16[playerid]);
  499. CancelSelectTextDraw(playerid);
  500. }
  501. if( playertextid == hranatd6[ playerid ] )
  502. {
  503. SendClientMessage(playerid, -1, "{FFFFFF}Kupili ste {0084e3}Hamburger{FFFFFF} i dobili ste{0084e3} +5hp.");
  504. ApplyAnimation(playerid, "FOOD", "EAT_Burger",4.1,0,1,1,0,0);
  505. GivePlayerMoney(playerid, -10);
  506. new Float:flutic;
  507. GetPlayerHealth(playerid, flutic);
  508. SetPlayerHealth(playerid, flutic+5);
  509. PlayerTextDrawHide(playerid, hranatd0[playerid]);
  510. PlayerTextDrawHide(playerid, hranatd1[playerid]);
  511. PlayerTextDrawHide(playerid, hranatd2[playerid]);
  512. PlayerTextDrawHide(playerid, hranatd3[playerid]);
  513. PlayerTextDrawHide(playerid, hranatd4[playerid]);
  514. PlayerTextDrawHide(playerid, hranatd5[playerid]);
  515. PlayerTextDrawHide(playerid, hranatd6[playerid]);
  516. PlayerTextDrawHide(playerid, hranatd7[playerid]);
  517. PlayerTextDrawHide(playerid, hranatd8[playerid]);
  518. PlayerTextDrawHide(playerid, hranatd9[playerid]);
  519. PlayerTextDrawHide(playerid, hranatd10[playerid]);
  520. PlayerTextDrawHide(playerid, hranatd11[playerid]);
  521. PlayerTextDrawHide(playerid, hranatd12[playerid]);
  522. PlayerTextDrawHide(playerid, hranatd13[playerid]);
  523. PlayerTextDrawHide(playerid, hranatd14[playerid]);
  524. PlayerTextDrawHide(playerid, hranatd15[playerid]);
  525. PlayerTextDrawHide(playerid, hranatd16[playerid]);
  526. CancelSelectTextDraw(playerid);
  527. }
  528. if( playertextid == hranatd7[ playerid ] )
  529. {
  530. SendClientMessage(playerid, -1, "{FFFFFF}Kupili ste {0084e3}Piletinu{FFFFFF} i dobili ste{0084e3} +10hp.");
  531. ApplyAnimation(playerid, "FOOD", "EAT_Chicken",4.1,0,1,1,0,0);
  532. GivePlayerMoney(playerid, -10);
  533. new Float:flutic;
  534. GetPlayerHealth(playerid, flutic);
  535. SetPlayerHealth(playerid, flutic+10);
  536. PlayerTextDrawHide(playerid, hranatd0[playerid]);
  537. PlayerTextDrawHide(playerid, hranatd1[playerid]);
  538. PlayerTextDrawHide(playerid, hranatd2[playerid]);
  539. PlayerTextDrawHide(playerid, hranatd3[playerid]);
  540. PlayerTextDrawHide(playerid, hranatd4[playerid]);
  541. PlayerTextDrawHide(playerid, hranatd5[playerid]);
  542. PlayerTextDrawHide(playerid, hranatd6[playerid]);
  543. PlayerTextDrawHide(playerid, hranatd7[playerid]);
  544. PlayerTextDrawHide(playerid, hranatd8[playerid]);
  545. PlayerTextDrawHide(playerid, hranatd9[playerid]);
  546. PlayerTextDrawHide(playerid, hranatd10[playerid]);
  547. PlayerTextDrawHide(playerid, hranatd11[playerid]);
  548. PlayerTextDrawHide(playerid, hranatd12[playerid]);
  549. PlayerTextDrawHide(playerid, hranatd13[playerid]);
  550. PlayerTextDrawHide(playerid, hranatd14[playerid]);
  551. PlayerTextDrawHide(playerid, hranatd15[playerid]);
  552. PlayerTextDrawHide(playerid, hranatd16[playerid]);
  553. CancelSelectTextDraw(playerid);
  554. }
  555. if( playertextid == hranatd8[ playerid ] )
  556. {
  557. SendClientMessage(playerid, -1, "{FFFFFF}Kupili ste {0084e3}Vino{FFFFFF} i dobili ste{0084e3} +2hp.");
  558. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_WINE);
  559. GivePlayerMoney(playerid, -10);
  560. new Float:flutic;
  561. GetPlayerHealth(playerid, flutic);
  562. SetPlayerHealth(playerid, flutic+2);
  563. PlayerTextDrawHide(playerid, hranatd0[playerid]);
  564. PlayerTextDrawHide(playerid, hranatd1[playerid]);
  565. PlayerTextDrawHide(playerid, hranatd2[playerid]);
  566. PlayerTextDrawHide(playerid, hranatd3[playerid]);
  567. PlayerTextDrawHide(playerid, hranatd4[playerid]);
  568. PlayerTextDrawHide(playerid, hranatd5[playerid]);
  569. PlayerTextDrawHide(playerid, hranatd6[playerid]);
  570. PlayerTextDrawHide(playerid, hranatd7[playerid]);
  571. PlayerTextDrawHide(playerid, hranatd8[playerid]);
  572. PlayerTextDrawHide(playerid, hranatd9[playerid]);
  573. PlayerTextDrawHide(playerid, hranatd10[playerid]);
  574. PlayerTextDrawHide(playerid, hranatd11[playerid]);
  575. PlayerTextDrawHide(playerid, hranatd12[playerid]);
  576. PlayerTextDrawHide(playerid, hranatd13[playerid]);
  577. PlayerTextDrawHide(playerid, hranatd14[playerid]);
  578. PlayerTextDrawHide(playerid, hranatd15[playerid]);
  579. PlayerTextDrawHide(playerid, hranatd16[playerid]);
  580. CancelSelectTextDraw(playerid);
  581. }
  582. if( playertextid == hranatd9[ playerid ] )
  583. {
  584. SendClientMessage(playerid, -1, "{FFFFFF}Kupili ste {0084e3}Pivo{FFFFFF} i dobili ste{0084e3} +2hp.");
  585. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);
  586. GivePlayerMoney(playerid, -10);
  587. new Float:flutic;
  588. GetPlayerHealth(playerid, flutic);
  589. SetPlayerHealth(playerid, flutic+2);
  590. PlayerTextDrawHide(playerid, hranatd0[playerid]);
  591. PlayerTextDrawHide(playerid, hranatd1[playerid]);
  592. PlayerTextDrawHide(playerid, hranatd2[playerid]);
  593. PlayerTextDrawHide(playerid, hranatd3[playerid]);
  594. PlayerTextDrawHide(playerid, hranatd4[playerid]);
  595. PlayerTextDrawHide(playerid, hranatd5[playerid]);
  596. PlayerTextDrawHide(playerid, hranatd6[playerid]);
  597. PlayerTextDrawHide(playerid, hranatd7[playerid]);
  598. PlayerTextDrawHide(playerid, hranatd8[playerid]);
  599. PlayerTextDrawHide(playerid, hranatd9[playerid]);
  600. PlayerTextDrawHide(playerid, hranatd10[playerid]);
  601. PlayerTextDrawHide(playerid, hranatd11[playerid]);
  602. PlayerTextDrawHide(playerid, hranatd12[playerid]);
  603. PlayerTextDrawHide(playerid, hranatd13[playerid]);
  604. PlayerTextDrawHide(playerid, hranatd14[playerid]);
  605. PlayerTextDrawHide(playerid, hranatd15[playerid]);
  606. PlayerTextDrawHide(playerid, hranatd16[playerid]);
  607. CancelSelectTextDraw(playerid);
  608. }
  609. return 1;
  610. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement