Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2020
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 113.50 KB | None | 0 0
  1.  
  2.  
  3. #include <a_samp>
  4. #include <izcmd>
  5. #include <sscanf>
  6. #include <dof2>
  7. #include <streamer>
  8.  
  9. //--------------------------------------------------------------------------------a
  10.  
  11.  
  12.  
  13. //----------------------------------------------------
  14. #define pc "{FF0000}"
  15. #define sc "{FFFFFF}"
  16. #define white "{FFFFFF}"
  17. #define b "{00FFFF}"
  18. //----------------------------------
  19. #define SERVER ""sc"Fanda{00FFFF}Gaming"
  20.  
  21. //---------------------------
  22. new HRACIEVENT[MAX_PLAYERS];
  23. new NOVYHRAC[MAX_PLAYERS];
  24. //-----------------------------
  25. new VyhraEventu[MAX_PLAYERS];
  26. //--------------------------
  27. new MinTimer;
  28. new Vyhra;
  29. //--------------------------
  30.  
  31.  
  32.  
  33. //--------------------------
  34. new Ukazka1;
  35. new BlockEPrikazy;
  36. //----------------
  37. //------------------------------------------------------------------------------
  38.  
  39. //----------------------------------------------------------------------------------
  40. new Text:HRACINAEVENTU;
  41. //------------------------------------------------------------------------------
  42.  
  43.  
  44. //-------------------------------------------------------------------------------------
  45. new Text:PANEL;
  46. new Text:ponline;
  47. new Text:phonline;
  48. new Text:aonline;
  49. new Text:TDDGEU;
  50. new Text:TDDG;
  51. //----------------------( /sumo )---------------------------------------------------
  52.  
  53. //-------------------------------------------------------------------------------------
  54.  
  55.  
  56. new TextCas;
  57.  
  58.  
  59.  
  60. #pragma tabsize 0
  61. #define PRESSED(%0) \
  62. (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
  63. #define WHITE "{FFFFFF}"
  64. #define RED "{F81414}"
  65. #define BLUE "{0066ff}"
  66. #define GREEN "{00FF22}"
  67. #define ORANGE "{FFA100}"
  68. #define YELLOW "{FFFF00}"
  69. #define VehicleHealthYellow 700
  70. #define VehicleHealthRed 400
  71. #define SpeedCheck(%0,%1,%2,%3,%4) floatround(floatsqroot(%4?(%0*%0+%1*%1+%2*%2):(%0*%0+%1*%1)) *%3*1.6)
  72. #define MAX_SPEED_VEHICLE 380.0
  73. //
  74. #define PreloadAnimLib(%1,%2) ApplyAnimation(%1,%2,"null",0.0,0,0,0,0,0)
  75.  
  76.  
  77. //---------------------------------------
  78. #define DIALOG_EVENTSYSTEM 10010
  79. #define DIALOG_ES_Tuning 10011
  80. #define DIALOG_TuningSraz 10012
  81. #define DIALOG_ES_Kopec 10013
  82. #define DIALOG_KopecSmrti 10014
  83. #define DIALOG_ES_Fallout 10015
  84. #define DIALOG_Fallout 10016
  85. //---------------------------------
  86. #define DIALOG_ES_Derby 10017
  87. #define DIALOG_Derby 10018
  88. //----------------------------------------------
  89. #define DIALOG_DOMY 10019
  90. #define DIALOG_ES_DM 10020
  91. #define DIALOG_DM 10021
  92. //---------------------------------------------
  93.  
  94. #define sb "{0055FF}"
  95. #define r "{FF0000}"
  96. #define g "{00FF00}"
  97. #define w "{FFFFFF}"
  98. #define dc "{a9c4e4}"
  99.  
  100. #define sblue 0x0055FFFF
  101. #define red 0xFF0000FF
  102. #define orange 0xFF9200FF
  103. #define blue 0x0000FFFF
  104. #define yellow 0xFFFF00FF
  105. #define grey 0xAFAFAFAA
  106. #define cyan 0x00FFFFFF
  107. #define green 0x00FF00FF
  108.  
  109. #define primary 0x0055FFFF
  110. #define secondary 0x0055FFFF
  111.  
  112. #define HOLDING(%0) \
  113. ((newkeys & (%0)) == (%0))
  114. #define RELEASED(%0) \
  115. (((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0)))
  116. #define OFF 0
  117. #define ON 1
  118. #define VEHICLE_CONTROL_DIALOG 5050
  119. //--------------------------
  120.  
  121. //----------------------------------------------
  122.  
  123. //---------------------------------------------
  124. //-----------------------(Forwardy)---------------------------------------------
  125. forward count3();
  126. forward count2();
  127. forward count1();
  128. forward go();
  129. forward stop();
  130. //---------------------------------------------
  131. //--------------------------------------------
  132. //--------------------------------------------
  133. new PlayerText:Textdraw1;
  134. new PlayerText:Textdraw0;
  135.  
  136.  
  137.  
  138. //
  139. new NapadCas[MAX_PLAYERS];
  140. //---------------------(Pozice)-------------------------------------------------
  141. new Float:EventX, Float:EventY, Float:EventZ;
  142. new Float:EventhX, Float:EventhY, Float:EventhZ;
  143. //--------------------(Newky)---------------------------------------------------
  144. new Event[MAX_PLAYERS];
  145. new InEvent[MAX_PLAYERS];
  146. new InFallout[MAX_PLAYERS];
  147. new InMise[MAX_PLAYERS];
  148. new Fallout;
  149. new FallOutObject[189];
  150. new Blub;
  151. new TuningSraz;
  152. new KopecSmrti;
  153. new FalloutTimer;
  154. new FalloutDestroyTimer;
  155. new FalloutTimeZ;
  156. new NextFalloutObject;
  157. new DMevent;
  158. //-------------------------
  159. new EventCar[4];
  160. ///---------------------------
  161. new DerbyCar;
  162. new PositionsDerby;
  163. //-----------------------------
  164. //-------------------------------
  165. new DerbyEvent;
  166. //------------------------------------------------------------------------------
  167. new Float:DerbyPos[21][4] = {
  168. {2409.2739,1090.6841,34.6094,45.1404}, // Derby 1
  169. {2407.8152,1113.0713,34.6124,88.7710}, // Derby 2
  170. {2408.5308,1127.5262,34.6091,86.4089}, // Derby 3
  171. {2408.3518,1144.3724,34.6094,87.5843}, // Derby 4
  172. {2407.8071,1157.8787,34.6036,89.5382}, // Derby 5
  173. {2409.1240,1175.6919,34.6065,130.5996}, // Derby 6
  174. {2395.3538,1175.1157,34.6026,179.1571}, // Derby 7
  175. {2384.4180,1174.5085,34.6058,179.3808}, // Derby 8
  176. {2374.7007,1175.3818,34.6103,180.8196}, // Derby 9
  177. {2364.8960,1174.9968,34.6023,219.5097}, // Derby 10
  178. {2366.9495,1162.9010,34.6069,266.6921}, // Derby 11
  179. {2365.7070,1152.1332,34.6027,262.7064}, // Derby 12
  180. {2365.0332,1143.2092,34.5990,268.8438}, // Derby 13
  181. {2366.0876,1131.5221,34.6087,269.6816}, // Derby 14
  182. {2364.9912,1115.3711,34.6040,272.6109}, // Derby 15
  183. {2365.7810,1102.7360,34.6087,269.9267}, // Derby 16
  184. {2366.8320,1090.0773,34.5995,311.4571}, // Derby 17
  185. {2377.9004,1091.2300,34.6076,356.2735}, // Derby 18
  186. {2385.5288,1092.7231,34.6068,359.6015}, // Derby 19
  187. {2393.0039,1091.1843,34.6054,358.3766}, // Derby 20
  188. {2399.5591,1090.7394,34.6037,3.7744} // Derby 21
  189. };
  190. //------------------------------------------------------------------------------
  191. new bool:EventPort_Tuning[MAX_PLAYERS];
  192. new bool:EventTuningPripojen[MAX_PLAYERS];
  193. //
  194. new bool:EventPort_Kopec[MAX_PLAYERS];
  195. new bool:EventKopecPripojen[MAX_PLAYERS];
  196. //
  197. new bool:EventPort_Fallout[MAX_PLAYERS];
  198. new bool:EventFalloutPripojen[MAX_PLAYERS];
  199. //----------
  200. new bool:EventPort_Derby[MAX_PLAYERS];
  201. new bool:EventDerbyPripojen[MAX_PLAYERS];
  202. //
  203. new bool:EventPort_DM[MAX_PLAYERS];
  204. new bool:EventDMPripojen[MAX_PLAYERS];
  205. //------------------------------------------------------------------------------
  206. stock Events(playerid)
  207. {
  208. if(TuningSraz == 0 && KopecSmrti == 0 && Fallout == 1) return SendClientMessage(playerid,0xFF0000FF,"[ ! ] {FFFFFF}Žádný Event nebyl spustěn!");
  209. return 1;
  210. }
  211. //-------------------------------------------------------------------------------
  212.  
  213. //============================================================================//
  214.  
  215.  
  216. //============================================================================//
  217.  
  218. //============================================================================//
  219.  
  220. new dfile[50];
  221. WasteDeAMXersTime()
  222. {
  223. new bb;
  224. #emit load.pri bb
  225. #emit stor.pri bb
  226. }
  227. //============================================================================//
  228.  
  229. ///////////////////////////
  230.  
  231. new Text:Textdraw7,Text:Textdraw8,Text:Textdraw9,Text:Textdraw10,Text:Textdraw11,Text:Textdraw12,Text:Textdraw13;
  232.  
  233.  
  234. new glob10598[10];
  235.  
  236. new glob105C0[15];
  237. new glob10624[6];
  238.  
  239.  
  240. new glob10C70[MAX_PLAYERS];
  241. new Float:tX;
  242. new Float:tY;
  243. new Float:tZ;
  244. // info
  245.  
  246. new Float:glob508[10];
  247. new Float:glob530[10];
  248. new Float:glob558[10];
  249. new nastaveno[MAX_PLAYERS];
  250. new Dni[MAX_PLAYERS];
  251. new Hodin[MAX_PLAYERS];
  252. new Minut[MAX_PLAYERS];
  253. new glob12218[MAX_PLAYERS];
  254. new Banka[MAX_PLAYERS];
  255. new glob13F7C[MAX_PLAYERS];
  256. new glob11F00[MAX_PLAYERS];
  257. new glob12B60[MAX_PLAYERS];
  258. new Penize[MAX_PLAYERS];
  259. new glob1520C[MAX_PLAYERS];
  260. new glob13190[MAX_PLAYERS];
  261. new glob14108[MAX_PLAYERS];
  262. new glob129D4[MAX_PLAYERS];
  263. new glob15FF8[MAX_PLAYERS];
  264. new glob11BE8[MAX_PLAYERS];
  265. new glob11D74[MAX_PLAYERS];
  266. new glob123A4[MAX_PLAYERS];
  267. new glob12CEC[MAX_PLAYERS];
  268. new glob12E78[MAX_PLAYERS];
  269. new glob15398[MAX_PLAYERS];
  270. new glob15524[MAX_PLAYERS];
  271. new Firma[MAX_PLAYERS];
  272. new glob16310[MAX_PLAYERS];
  273. new glob13004[MAX_PLAYERS];
  274. new glob137C0[MAX_PLAYERS];
  275. new glob15080[MAX_PLAYERS];
  276. new glob15CE0[MAX_PLAYERS];
  277. new glob12530[MAX_PLAYERS];
  278. new glob126BC[MAX_PLAYERS];
  279. new glob1208C[MAX_PLAYERS];
  280. new glob12848[MAX_PLAYERS];
  281. new Float:glob11744[MAX_PLAYERS];
  282. new Float:glob115B8[MAX_PLAYERS];
  283. new Float:glob107CC[MAX_PLAYERS];
  284. new Float:glob10958[MAX_PLAYERS];
  285. new Float:glob10AE4[MAX_PLAYERS];
  286. new glob11114[MAX_PLAYERS];
  287. new glob13634[MAX_PLAYERS];
  288. new glob14294[MAX_PLAYERS];
  289. new Float:Zdravi;
  290. new LoterieCislo[MAX_PLAYERS];
  291. new TimeInfoBox[MAX_PLAYERS];
  292. new Text:InfoBox[MAX_PLAYERS];
  293. new Timrik[20];
  294. new glob10DFC[MAX_PLAYERS];
  295. new Menu:globFF7C[50];
  296. new glob145AC[MAX_PLAYERS];
  297. new glob55BC[MAX_VEHICLES];//
  298. new Float:TPos[MAX_PLAYERS][3];
  299. new RampCount = -1;
  300. new Nabumbany[MAX_PLAYERS];
  301. new glob14A50[MAX_PLAYERS];
  302. new glob60DC[19];
  303. new glob16628[MAX_PLAYERS];
  304. new glob1331C[MAX_PLAYERS];//mise
  305. new SetDrag[7];
  306. new HracDrag[25];
  307. new TestDrag[25];
  308. new Float:BombPos[3];
  309. new glob10F88[MAX_PLAYERS];
  310. new glob134A8[MAX_PLAYERS];
  311. new glob6144;
  312. new glob1142C[MAX_PLAYERS];
  313. new Unesen[MAX_PLAYERS];
  314. new glob10074[150];
  315. new glob1004C[10];
  316. new glob102CC[150];
  317. new atentatik = 0;
  318. new Float:Spe_X[MAX_PLAYERS], Float:Spe_Y[MAX_PLAYERS], Float:Spe_Z[MAX_PLAYERS], Float:Spe_A[MAX_PLAYERS],SpeInt[MAX_PLAYERS];
  319. new glob1394C[MAX_PLAYERS];
  320. new glob159C8[MAX_PLAYERS];
  321. new glob112A0[MAX_PLAYERS];
  322. new Taxa[MAX_PLAYERS];
  323.  
  324.  
  325. //Dům
  326.  
  327. new glob10034 ;
  328.  
  329.  
  330. new glob148C4[MAX_PLAYERS];
  331. new WarpLimit[MAX_PLAYERS];
  332. new Text:TextDrawChat[6];
  333. new text_chat6[150];
  334. new text_chat5[150];
  335. new text_chat4[150];
  336. new text_chat3[150];
  337. new text_chat2[150];
  338. new text_chat1[150];
  339.  
  340. main ( ) { }
  341.  
  342. public OnGameModeInit()
  343. {
  344.  
  345. //---------------------------
  346. for(new i = 0; i < MAX_PLAYERS; i++)
  347. {
  348. Event[i] = 0;
  349. InEvent[i] = 0;
  350. EventFalloutPripojen[i] = false;
  351. EventTuningPripojen[i] = false;
  352. EventKopecPripojen[i] = false;
  353. EventPort_Tuning[i] = false;
  354. EventPort_Kopec[i] = false;
  355. EventPort_Fallout[i] = false;
  356. EventPort_Derby[i] = false;
  357. EventDerbyPripojen[i] = false;
  358. EventDMPripojen[i] = false;
  359. EventPort_DM[i] = false;
  360.  
  361. }
  362. //-------------------------
  363.  
  364. //-----------------------
  365.  
  366.  
  367. PANEL = TextDrawCreate(-2.000000, 437.000000, ".");
  368. TextDrawBackgroundColor(PANEL, 255);
  369. TextDrawFont(PANEL, 1);
  370. TextDrawLetterSize(PANEL, 0.500000, 0.900000);
  371. TextDrawColor(PANEL, -1);
  372. TextDrawSetOutline(PANEL, 0);
  373. TextDrawSetProportional(PANEL, 1);
  374. TextDrawSetShadow(PANEL, 1);
  375. TextDrawUseBox(PANEL, 1);
  376. TextDrawBoxColor(PANEL, 255);
  377. TextDrawTextSize(PANEL, 640.000000, 123.000000);
  378. TextDrawSetSelectable(PANEL, 0);
  379.  
  380. //----------------------------------------
  381. //----------------------------------
  382. ponline = TextDrawCreate(120.000000, 438.000000, "ON-LINE ~w~HRACI: 0");
  383. TextDrawBackgroundColor(ponline, 0);
  384. TextDrawFont(ponline, 2);
  385. TextDrawLetterSize(ponline, 0.220000, 0.899999);
  386. TextDrawColor(ponline, 16711935);
  387. TextDrawSetOutline(ponline, 0);
  388. TextDrawSetProportional(ponline, 1);
  389. TextDrawSetShadow(ponline, 1);
  390.  
  391. phonline = TextDrawCreate(251.000000, 438.000000, "ON-LINE ~y~PREMIUM HRACI: ~w~0");
  392. TextDrawBackgroundColor(phonline, 0);
  393. TextDrawFont(phonline, 2);
  394. TextDrawLetterSize(phonline, 0.190000, 0.899999);
  395. TextDrawColor(phonline, 16711935);
  396. TextDrawSetOutline(phonline, 0);
  397. TextDrawSetProportional(phonline, 1);
  398. TextDrawSetShadow(phonline, 1);
  399.  
  400. aonline = TextDrawCreate(411.000000, 438.000000, "ON-LINE ~r~ADMINISTRATORI: ~w~0");
  401. TextDrawBackgroundColor(aonline, 0);
  402. TextDrawFont(aonline, 2);
  403. TextDrawLetterSize(aonline, 0.190000, 0.899999);
  404. TextDrawColor(aonline, 16711935);
  405. TextDrawSetOutline(aonline, 0);
  406. TextDrawSetProportional(aonline, 1);
  407. TextDrawSetShadow(aonline, 1);
  408.  
  409. TDDG = TextDrawCreate(0.000000, 439.000000, "~w~Fanda~b~Gaming");
  410. TextDrawBackgroundColor(TDDG, 255);
  411. TextDrawFont(TDDG, 0);
  412. TextDrawLetterSize(TDDG, 0.490000, 0.899999);
  413. TextDrawColor(TDDG, -1);
  414. TextDrawSetOutline(TDDG, 1);
  415. TextDrawSetProportional(TDDG, 1);
  416. TextDrawSetShadow(TDDG, 1);
  417.  
  418. TDDGEU = TextDrawCreate(530.000000, 439.000000, "~w~Fanda~b~Gaming");
  419. TextDrawBackgroundColor(TDDGEU, 255);
  420. TextDrawFont(TDDGEU, 0);
  421. TextDrawLetterSize(TDDGEU, 0.490000, 0.899999);
  422. TextDrawColor(TDDGEU, -1);
  423. TextDrawSetOutline(TDDGEU, 1);
  424. TextDrawSetProportional(TDDGEU, 1);
  425. TextDrawSetShadow(TDDGEU, 1);
  426. //-----------------------------------------
  427.  
  428. //-------------------------------------------
  429. //----------------------------------
  430. HRACINAEVENTU = TextDrawCreate(550, 240, "~g~Hraci Event: ~y~0");
  431. TextDrawBackgroundColor(HRACINAEVENTU, 255);
  432. TextDrawFont(HRACINAEVENTU, 1);
  433. TextDrawLetterSize(HRACINAEVENTU, 0.299999,1.190100);
  434. TextDrawColor(HRACINAEVENTU, -1);
  435. TextDrawSetOutline(HRACINAEVENTU, 0);
  436. TextDrawSetProportional(HRACINAEVENTU, 1);
  437. TextDrawSetShadow(HRACINAEVENTU, 1);
  438. TextDrawSetSelectable(HRACINAEVENTU, 0);
  439.  
  440. //----------------------------------
  441.  
  442.  
  443.  
  444. Textdraw7 = TextDrawCreate(34.000000, 210.000000, "~g~NOVY EVENT");
  445. TextDrawBackgroundColor(Textdraw7, 255);
  446. TextDrawFont(Textdraw7, 2);
  447. TextDrawLetterSize(Textdraw7, 0.460000, 2.899999);
  448. TextDrawColor(Textdraw7, -16776961);
  449. TextDrawSetOutline(Textdraw7, 0);
  450. TextDrawSetProportional(Textdraw7, 1);
  451. TextDrawSetShadow(Textdraw7, 1);
  452. TextDrawSetSelectable(Textdraw7, 0);
  453.  
  454. Textdraw8 = TextDrawCreate(178.000000, 253.000000, "");
  455. TextDrawBackgroundColor(Textdraw8, 255);
  456. TextDrawFont(Textdraw8, 1);
  457. TextDrawLetterSize(Textdraw8, 0.420000, 1.799999);
  458. TextDrawColor(Textdraw8, -1);
  459. TextDrawSetOutline(Textdraw8, 0);
  460. TextDrawSetProportional(Textdraw8, 1);
  461. TextDrawSetShadow(Textdraw8, 1);
  462. TextDrawUseBox(Textdraw8, 1);
  463. TextDrawBoxColor(Textdraw8, 80);
  464. TextDrawTextSize(Textdraw8, 0.000000, 0.000000);
  465. TextDrawSetSelectable(Textdraw8, 0);
  466.  
  467. Textdraw9 = TextDrawCreate(34.000000, 248.000000, "- ~g~Misto: ~h~~y~/port");
  468. TextDrawBackgroundColor(Textdraw9, 255);
  469. TextDrawFont(Textdraw9, 1);
  470. TextDrawLetterSize(Textdraw9, 0.360000, 1.200000);
  471. TextDrawColor(Textdraw9, 65535);
  472. TextDrawSetOutline(Textdraw9, 0);
  473. TextDrawSetProportional(Textdraw9, 1);
  474. TextDrawSetShadow(Textdraw9, 1);
  475. TextDrawSetSelectable(Textdraw9, 0);
  476.  
  477. Textdraw10 = TextDrawCreate(34.000000, 236.000000, "");
  478. TextDrawBackgroundColor(Textdraw10, 255);
  479. TextDrawFont(Textdraw10, 1);
  480. TextDrawLetterSize(Textdraw10, 0.360000, 1.200000);
  481. TextDrawColor(Textdraw10, -1);
  482. TextDrawSetOutline(Textdraw10, 0);
  483. TextDrawSetProportional(Textdraw10, 1);
  484. TextDrawSetShadow(Textdraw10, 1);
  485. TextDrawUseBox(Textdraw10, 1);
  486. TextDrawBoxColor(Textdraw10, 80);
  487. TextDrawTextSize(Textdraw10, 0.000000, 0.000000);
  488. TextDrawSetSelectable(Textdraw10, 0);
  489.  
  490. Textdraw11 = TextDrawCreate(34.000000, 236.000000, "- ~g~Nazev: ~h~~y~Uno Evento");
  491. TextDrawBackgroundColor(Textdraw11, 255);
  492. TextDrawFont(Textdraw11, 1);
  493. TextDrawLetterSize(Textdraw11, 0.360000, 1.200000);
  494. TextDrawColor(Textdraw11, 65535);
  495. TextDrawSetOutline(Textdraw11, 0);
  496. TextDrawSetProportional(Textdraw11, 1);
  497. TextDrawSetShadow(Textdraw11, 1);
  498. TextDrawSetSelectable(Textdraw11, 0);
  499.  
  500. Textdraw12 = TextDrawCreate(34.000000, 260.000000, "- ~g~Vyhra: ~h~~y~1.000.000 ~g~$");
  501. TextDrawBackgroundColor(Textdraw12, 255);
  502. TextDrawFont(Textdraw12, 1);
  503. TextDrawLetterSize(Textdraw12, 0.360000, 1.200000);
  504. TextDrawColor(Textdraw12, 65535);
  505. TextDrawSetOutline(Textdraw12, 0);
  506. TextDrawSetProportional(Textdraw12, 1);
  507. TextDrawSetShadow(Textdraw12, 1);
  508. TextDrawSetSelectable(Textdraw12, 0);
  509.  
  510. Textdraw13 = TextDrawCreate(34.000000, 272.000000, "- ~g~Vytvoril: ~h~~y~SERVER");
  511. TextDrawBackgroundColor(Textdraw13, 255);
  512. TextDrawFont(Textdraw13, 1);
  513. TextDrawLetterSize(Textdraw13, 0.360000, 1.200000);
  514. TextDrawColor(Textdraw13, 65535);
  515. TextDrawSetOutline(Textdraw13, 0);
  516. TextDrawSetProportional(Textdraw13, 1);
  517. TextDrawSetShadow(Textdraw13, 1);
  518. TextDrawSetSelectable(Textdraw13, 0);
  519. //Cenzura....
  520.  
  521.  
  522.  
  523.  
  524. //------------------------------------------------------------------------------------
  525.  
  526. CreateDynamicObject(1771, 243.6529, 1798.177, 7.0229, 0.0, 0.0, -180.0, 0);
  527. CreateDynamicObject(1771, 253.593, 1798.1719, 7.0479, 0.0, 0.0, -180.0, 0);
  528. CreateDynamicObject(1771, 249.9239, 1798.1719, 7.0479, 0.0, 0.0, -180.0, 0);
  529. CreateDynamicObject(971, 242.8009, 1798.1989, 9.909, 0.0, 0.0, -270.0, 0);
  530. CreateDynamicObject(971, 246.9839, 1798.2209, 9.8339, 0.0, 0.0, -270.0, 0);
  531. CreateDynamicObject(971, 250.643, 1798.165, 9.909, 0.0, 0.0, -270.0, 0);
  532. CreateDynamicObject(971, 254.292, 1801.6469, 9.866, 0.0, 0.0, -270.0, 0);
  533. CreateDynamicObject(9241, 337.3179, 1976.828, 18.3999, 0.0, 0.0, 0.0, 0);
  534. CreateDynamicObject(9241, 337.26, 1944.743, 18.3999, 0.0, 0.0, 0.0, 0);
  535. CreateDynamicObject(5822, 2270.6589, 2400.696, 13.345, 0.0, 0.0, -83.047, 0);
  536. //===============================[DUEL]====================================================//
  537. CreateObject(8674,2491.683349,2351.941406,71.271911,0.000000,0.000000,0.000000,500.0); //Plot
  538. CreateObject(8674,2496.763671,2357.155761,71.288635,0.000000,0.000000,-90.299980,500.0);//Plot
  539. CreateObject(8674,2496.893310,2396.847412,71.279418,0.000000,0.000000,89.099967,500.0);//Plot
  540. CreateObject(8674,2491.766845,2401.936767,71.215904,0.000000,0.000000,0.000000,500.0);//Plot
  541. CreateObject(8674,2450.553222,2402.003662,71.284500,0.000000,0.000000,0.000000,500.0);//Plot
  542. CreateObject(8674,2445.359130,2396.900146,71.257560,0.000000,0.000000,89.899986,500.0);//Plot
  543. CreateObject(8674,2445.574462,2356.705322,71.366485,0.000000,0.000000,-90.799972,500.0);//Plot
  544. CreateObject(8674,2450.771484,2351.544189,71.319984,0.000000,0.000000,0.000000,500.0);//Plot
  545. CreateObject(8674,2481.362304,2351.959716,71.228462,0.000000,0.000000,0.000000,500.0);//Plot
  546. CreateObject(8674,2471.045898,2351.943359,71.177024,0.000000,0.000000,0.000000,500.0);//Plot
  547. CreateObject(8674,2460.942626,2351.723388,71.170806,1.099997,0.499998,1.399999,500.0);//Plot
  548. CreateObject(8674,2460.910156,2402.043212,71.265846,0.000000,0.000000,0.000000,500.0);//Plot
  549. CreateObject(8674,2471.230712,2402.072021,71.203666,0.000000,0.000000,0.000000,500.0);//Plot
  550. CreateObject(8674,2481.627441,2402.001708,71.167694,-0.100000,-0.500001,-0.699997,500.0);//Plot
  551. CreateObject(8674,2445.382812,2386.655273,71.234947,0.000000,0.000000,90.799987,500.0);//Plot
  552. CreateObject(8674,2445.676757,2367.079589,71.342918,0.000000,0.000000,89.699989,500.0);//Plot
  553. CreateObject(8674,2496.892089,2386.549804,71.280570,0.000000,0.000000,-89.200004,500.0);//Plot
  554. CreateObject(8674,2496.823486,2367.445800,71.288543,0.000000,0.000000,89.699928,500.0);//Plot
  555. CreateObject(2600,2462.760253,2340.957275,82.498680,0.000000,0.000000,156.199981,500.0);//Divák Kukátko:D
  556. CreateObject(1369,2464.230957,2340.093750,82.386367,0.000000,0.000000,-135.099990,500.0);//Vozík
  557. CreateObject(8644,2462.893066,2331.967285,85.750946,0.000000,0.000000,117.000007,500.0);//Šavle
  558. //CreateObject(1662, -1029.9891, 464.1679, 15.8079, 0.0, 0.0, -121.0941, 0);
  559. // CreateObject(16362, -1660.6441, -167.9901, 16.2689, 0.0, 0.0, 45.0, 0);
  560. // CreateObject(11391, -1679.0051, -196.368, 14.4379, 0.0, 0.0, 45.0, 0);
  561. // CreateObject(16362, 1477.4699, 1766.302, 12.9329, 0.0, 0.0, -90.0, 0);
  562. // CreateObject(11391, 1469.613, 1799.2419, 11.102, 0.0, 0.0, -90.0, 0);
  563. // CreateObject(16362, 1434.6629, -2493.9122, 15.675, 0.0, 0.0, 0.0, 0);
  564. // CreateObject(11391, 1401.112, -2500.962, 13.8439, 0.0, 0.0, 0.0, 0);
  565.  
  566. CreateDynamicObject(17300, 1849.01, 1907.4069, 154.798, -4.297, 0.0, -90.0, 0);
  567. CreateDynamicObject(17300, 1608.8199, 1889.0989, 207.8699, -10.313, 0.0, -90.0, 0);
  568. CreateDynamicObject(17300, 1376.0279, 1870.765, 289.571, -18.0481, 0.0, -90.0, 0);
  569. CreateDynamicObject(17300, 1155.613, 1852.29, 402.2409, -25.7831, 0.0, -90.0, 0);
  570. CreateDynamicObject(17300, 952.051, 1833.9279, 541.5629, -32.6591, 0.0, -90.0, 0);
  571. CreateDynamicObject(17300, 765.963, 1815.4439, 704.739, -39.5341, 0.0, -90.0, 0);
  572. CreateDynamicObject(17300, 608.572, 1797.1529, 894.049, -50.7071, 0.0, -90.0, 0);
  573. CreateDynamicObject(17300, 479.307, 1778.613, 1104.4229, -55.863, 0.0, -90.0, 0);
  574. CreateDynamicObject(17300, 372.2399, 1760.333, 1324.5729, -61.8791, 0.0, -90.0, 0);
  575. CreateDynamicObject(17300, 290.785, 1742.1779, 1554.0129, -68.755, 0.0, -90.0, 0);
  576. CreateDynamicObject(17300, 239.0449, 1723.9549, 1792.5429, -76.49, 0.0, -90.0, 0);
  577. CreateDynamicObject(17300, 215.908, 1705.3819, 2039.9289, -82.506, 0.0, -90.0, 0);
  578. CreateDynamicObject(17300, 222.468, 1686.9759, 2285.7709, -90.241, 0.0, -90.0, 0);
  579. CreateDynamicObject(17300, 263.656, 1668.681, 2527.3569, -98.835, 0.0, -90.0, 0);
  580. CreateDynamicObject(17300, 335.803, 1650.509, 2763.5319, -104.851, 0.0, -90.0, 0);
  581. CreateDynamicObject(17300, 440.746, 1631.9139, 2987.112, -115.1641, 0.0, -90.0, 0);
  582. CreateDynamicObject(17300, 582.947, 1613.5889, 3186.8989, -125.478, 0.0, -90.0, 0);
  583. CreateDynamicObject(17300, 747.9439, 1595.915, 3357.3229, -132.353, 0.0, -90.0, 0);
  584. CreateDynamicObject(17300, 928.726, 1578.6009, 3504.091, -139.2291, 0.0, -90.0, 0);
  585. CreateDynamicObject(17300, 1133.9899, 1560.4909, 3633.25, -146.1041, 0.0, -90.0, 0);
  586. CreateDynamicObject(17300, 1357.961, 1542.1409, 3735.174, -154.6991, 0.0, -90.0, 0);
  587. CreateDynamicObject(17300, 1584.4709, 1524.4439, 3804.9418, -160.715, 0.0, -90.0, 0);
  588. CreateDynamicObject(17300, 1824.9339, 1506.208, 3852.302, -166.7311, 0.0, -90.0, 0);
  589. CreateDynamicObject(17300, 2068.697, 1487.884, 3868.5358, -175.325, 0.0, -90.0, 0);
  590. CreateObject(17613, 2218.923, 1469.426, 3863.2299, 0.0, 0.0, 0.0, 0);//plocha bigtunelu
  591.  
  592. CreateDynamicObject(1655, 1976.203, 1912.301, 131.235, 0.0, 0.0, -90.0, 0);
  593. CreateDynamicObject(1655, 1976.228, 1920.9899, 131.238, 0.0, 0.0, -90.0, 0);
  594. CreateDynamicObject(1655, -2681.6331, 1582.931, 0.0869, 0.0, 0.0, 0.0, 0);
  595. CreateDynamicObject(1655, -2680.2361, 1607.124, 0.0659, 0.0, 0.0, -180.0, 0);
  596. CreateDynamicObject(1655, -2681.576, 1921.7889, 0.082, 0.0, 0.0, 0.0, 0);
  597. CreateDynamicObject(1655, -2681.4131, 1946.0109, 0.0869, 0.0, 0.0, -180.0, 0);
  598. CreateDynamicObject(18367, -2147.17, -88.8841, 37.2029, -18.0481, 0.0, -180.0, 0);
  599. CreateDynamicObject(1894, -2073.4109, -57.8881, 44.055, 0.0, 0.0, 0.0, 0);
  600. CreateDynamicObject(1696, -2053.086, -49.1241, 47.2949, 0.0, 0.0, 0.0, 0);
  601. CreateDynamicObject(1696, -2073.782, 2.3729, 46.291, 0.0, 0.0, 90.0, 0);
  602. CreateDynamicObject(18367, -2122.751, 11.112, 37.046, -18.0481, 0.0, -180.0, 0);
  603. CreateDynamicObject(1697, -2147.771, 92.68, 51.067, 0.0, 0.0, -135.0, 0);
  604. CreateDynamicObject(1696, -2194.7562, 133.1629, 55.101, 0.0, 0.0, 78.75, 0);
  605. CreateDynamicObject(1696, -2183.7439, 115.6129, 55.101, 0.0, 0.0, -180.0, 0);
  606. CreateDynamicObject(1697, -2193.72, 43.449, 59.6259, 0.0, 0.0, 0.0, 0);
  607. CreateDynamicObject(1696, -2202.5521, 7.3319, 63.602, 0.0, 0.0, 90.0, 0);
  608. CreateDynamicObject(1696, -2234.7872, -139.8911, 47.2949, 0.0, 0.0, 180.0, 0);
  609. CreateDynamicObject(1696, -2235.7, -57.871, 59.0149, 0.0, 0.0, 180.0, 0);
  610. CreateDynamicObject(1696, -2217.169, 135.6609, 57.915, 0.0, 0.0, 0.0, 0);
  611. CreateDynamicObject(1696, -2203.2571, 174.608, 59.478, 0.0, 0.0, -90.0, 0);
  612. CreateDynamicObject(1696, -2159.826, 196.151, 58.2729, 0.0, 0.0, 0.0, 0);
  613. CreateDynamicObject(18367, -2197.0931, 282.709, 50.6049, -12.8921, 0.0, -180.0, 0);
  614. CreateDynamicObject(18367, -2183.15, 467.5849, 57.1829, -26.643, 0.0, -180.0, 0);
  615. CreateDynamicObject(18367, -2170.8221, 488.919, 72.6679, -11.1731, 0.0, -180.0, 0);
  616. CreateDynamicObject(13645, -2198.1531, 551.9949, 82.0729, 0.0, 0.0, 0.0, 0);
  617. CreateDynamicObject(1894, -2198.5682, 595.8839, 58.3989, -0.8591, 7.735, -90.0, 0);
  618. CreateDynamicObject(1894, -2219.7, 657.7509, 59.7159, 0.859, 5.157, -236.25, 0);
  619. CreateDynamicObject(1697, -2218.73, 701.96, 64.3619, 0.0, 0.0, -180.0, 0);
  620. CreateDynamicObject(1894, -2234.7291, 749.8679, 62.3699, 0.0, 8.5939, 90.0, 0);
  621. CreateDynamicObject(1697, -2216.928, 766.2849, 67.1839, 0.0, 0.0, 90.0, 0);
  622. CreateDynamicObject(1697, -2205.3541, 794.203, 70.1399, 0.0, 0.0, 180.0, 0);
  623. CreateDynamicObject(18367, -2197.1089, 343.013, 60.6419, 6.0159, 0.0, -360.0, 0);
  624. CreateDynamicObject(3626, -2237.461, -178.071, 50.2509, 0.0, 0.0, -180.0, 0);
  625. CreateDynamicObject(3626, -2210.7271, 879.145, 70.2129, 0.0, 0.0, -360.0, 0);
  626. CreateDynamicObject(18450, -953.3171, 2666.5539, 44.7369, 0.0, 0.0, -266.5621, 0);
  627. CreateDynamicObject(5428, -943.92, 2521.5629, 45.824, 0.0, 0.0, 101.25, 0);
  628. CreateDynamicObject(5428, -933.37, 2463.75, 45.852, 0.0, 0.0, -78.75, 0);
  629. CreateDynamicObject(16113, -975.425, 2545.3459, 39.2369, 0.0, 0.0, -123.75, 0);
  630. CreateDynamicObject(16113, -990.87, 2511.8779, 39.573, 0.0, 0.0, -33.75, 0);
  631. CreateDynamicObject(16113, -981.42, 2462.8779, 38.901, 0.0, 0.0, -45.0, 0);
  632. CreateDynamicObject(16113, -960.568, 2428.84, 39.429, 0.0, 0.0, 22.5, 0);
  633. CreateDynamicObject(16113, -915.3061, 2424.466, 40.268, 0.0, 0.0, 56.25, 0);
  634. CreateDynamicObject(16113, -905.923, 2553.2709, 39.9889, 0.0, 0.0, -146.25, 0);
  635. CreateDynamicObject(16113, -895.883, 2523.277, 39.722, 0.0, 0.0, -225.0, 0);
  636. CreateDynamicObject(16113, -886.813, 2481.3789, 39.6749, 0.0, 0.0, -225.0, 0);
  637. CreateDynamicObject(16113, -888.469, 2445.069, 39.45, 0.0, 0.0, -247.5, 0);
  638. CreateDynamicObject(622, -896.972, 2448.8789, 45.79, 0.0, 0.0, 56.25, 0);
  639. CreateDynamicObject(622, -956.175, 2440.228, 45.283, 0.0, 0.0, -33.75, 0);
  640. CreateDynamicObject(622, -976.3591, 2533.9838, 45.763, 0.0, 0.0, -112.5, 0);
  641. CreateDynamicObject(622, -975.87, 2482.5249, 45.8089, 0.0, 0.0, -78.75, 0);
  642. CreateDynamicObject(622, -898.8511, 2504.374, 45.762, 0.0, 0.0, -247.5, 0);
  643. CreateDynamicObject(622, -913.8151, 2540.7351, 45.151, 0.0, 0.0, -213.75, 0);
  644. CreateDynamicObject(11490, -969.068, 2470.7028, 45.645, 0.0, 0.0, -258.75, 0);
  645. CreateDynamicObject(11491, -958.2751, 2472.852, 47.143, 0.0, 0.0, 101.25, 0);
  646. CreateDynamicObject(7533, -909.331, 2494.8989, 48.304, 0.0, 0.0, 56.25, 0);
  647. CreateDynamicObject(6965, -939.224, 2492.0161, 49.733, 0.0, 0.0, 11.25, 0);
  648. CreateDynamicObject(7392, -929.595, 2441.1269, 55.3139, 0.0, 0.0, -78.75, 0);
  649. CreateDynamicObject(16667, -922.7311, 2552.51, 53.4179, 0.0, 0.0, -348.75, 0);
  650. CreateDynamicObject(3279, -930.3591, 2541.7089, 45.6419, 0.0, 0.0, -90.0, 0);
  651. CreateDynamicObject(3279, -965.248, 2536.2971, 45.47, 0.0, 0.0, -438.75, 0);
  652. CreateDynamicObject(16409, -915.5571, 2527.9008, 45.636, 0.0, 0.0, 11.25, 0);
  653. CreateDynamicObject(5520, -972.6271, 2515.206, 50.7109, 0.0, 0.0, 101.25, 0);
  654.  
  655. glob105C0[0] = CreateDynamicObject(980, 1587.8, -1638.2431, 15.1059, 0.0, 0.0, -180.0, 0);
  656. glob105C0[1] = CreateDynamicObject(980, 2334.788, 2443.458, 7.491, 0.0, 0.0, 56.25, 0);
  657. glob105C0[2] = CreateDynamicObject(972, -1629.387, 685.453, 3.9839, 0.0, 0.0, -270.0, 0);
  658. glob105C0[3] = CreateDynamicObject(980, 1961.5999, -2189.8589, 15.3199, 0.0, 0.0, 0.0, 0);
  659. glob105C0[4] = CreateDynamicObject(980, -1545.475, -430.4921, 7.762, 0.0, 0.0, 135.0, 0);
  660. glob105C0[5] = CreateDynamicObject(980, 1705.9499, 1607.592, 11.864, 0.0, 0.859, 73.593, 0);
  661. glob105C0[6] = CreateDynamicObject(975, 2720.3359, -2405.327, 13.661, 0.0, 0.0, -90.0, 0);
  662. glob105C0[7] = CreateDynamicObject(980, -1528.9351, 482.242, 8.953, 0.0, 0.0, 0.0, 0);
  663. glob105C0[8] = CreateDynamicObject(980, 2294.1259, 2498.3569, 5.0469, 0.0, 0.0, -90.0, 0);
  664. glob105C0[9] = CreateDynamicObject(975, 2720.3811, -2504.054, 13.6649, 0.0, 0.0, 90.0, 0);
  665. glob105C0[10] = CreateDynamicObject(985, -1228.985, 58.159, 14.8409, 0.0, 0.0, 45.0, 0);
  666. glob105C0[11] = CreateDynamicObject(985, -1218.016, 69.138, 14.8409, 0.0, 0.0, -135.0, 0);
  667. glob105C0[12] = CreateDynamicObject(971, 96.708, 1922.9389, 20.645, 0.0, 0.0, -90.8591, 0);
  668. glob105C0[13] = CreateDynamicObject(976, 218.5489, 1875.5119, 12.309, 0.0, 0.0, -180.0, 0);
  669. glob105C0[14] = CreateDynamicObject(980, 248.5549, 1802.6109, 9.0909, 0.0, 0.0, 0.0, 0);
  670. glob10624[0] = CreateDynamicObject(3409, -1069.215, -1630.323, 75.537, 0.0, 0.0, -90.0, 0);
  671. glob10624[1] = CreateDynamicObject(3409, -1069.174, -1625.944, 75.537, 0.0, 0.0, -90.0, 0);
  672. glob10624[2] = CreateDynamicObject(3409, -1064.344, -1630.278, 75.537, 0.0, 0.0, -90.0, 0);
  673. glob10624[3] = CreateDynamicObject(3409, -1064.3021, -1626.094, 75.537, 0.0, 0.0, -90.0, 0);
  674. glob10624[4] = CreateDynamicObject(3409, -1069.2181, -1621.544, 75.537, 0.0, 0.0, -90.0, 0);
  675. glob10624[5] = CreateDynamicObject(3409, -1064.449, -1621.6191, 75.537, 0.0, 0.0, -90.0, 0);
  676. return 1;
  677. }
  678. public OnGameModeExit()
  679. {
  680. //------------------------------------------------------------
  681.  
  682. //-------------------------------------------------------------
  683. for(new i = 0; i < 3; i++)
  684. {
  685. TextDrawDestroy(TextDrawChat[0]);
  686. TextDrawDestroy(TextDrawChat[1]);
  687. TextDrawDestroy(TextDrawChat[2]);
  688. TextDrawDestroy(TextDrawChat[3]);
  689. TextDrawDestroy(TextDrawChat[4]);
  690. TextDrawDestroy(TextDrawChat[5]);
  691. }
  692. TextDrawHideForAll(Textdraw7);
  693. TextDrawDestroy(Textdraw7);
  694. TextDrawHideForAll(Textdraw8);
  695. TextDrawDestroy(Textdraw8);
  696. TextDrawHideForAll(Textdraw9);
  697. TextDrawDestroy(Textdraw9);
  698. TextDrawHideForAll(Textdraw10);
  699. TextDrawDestroy(Textdraw10);
  700. TextDrawHideForAll(Textdraw11);
  701. TextDrawDestroy(Textdraw11);
  702. TextDrawHideForAll(Textdraw12);
  703. TextDrawDestroy(Textdraw12);
  704. TextDrawHideForAll(Textdraw13);
  705. TextDrawDestroy(Textdraw13);
  706. DOF2_Exit();
  707. SendRconCommand("Nemky");
  708. return 1;
  709. }
  710.  
  711. public OnPlayerConnect(playerid)
  712. {
  713. if(IsPlayerNPC(playerid)) return 0;
  714. if(IsPlayerConnected(playerid))
  715. {
  716. //---------------------------------------------------------------------
  717. Event[playerid] = 0;
  718. //------------------------------------------
  719. //------------------------------------------
  720.  
  721.  
  722.  
  723.  
  724. Textdraw1 = CreatePlayerTextDraw(playerid,523.000000, 12.000000, "~w~28.07.2019");
  725. PlayerTextDrawBackgroundColor(playerid,Textdraw1, 255);
  726. PlayerTextDrawFont(playerid,Textdraw1, 1);
  727. PlayerTextDrawLetterSize(playerid,Textdraw1, 0.430000, 1.000000);
  728. PlayerTextDrawColor(playerid,Textdraw1, 16711935);
  729. PlayerTextDrawSetOutline(playerid,Textdraw1, 0);
  730. PlayerTextDrawSetProportional(playerid,Textdraw1, 1);
  731. PlayerTextDrawSetShadow(playerid,Textdraw1, 1);
  732. PlayerTextDrawSetSelectable(playerid,Textdraw1, 0);
  733.  
  734.  
  735. Textdraw0 = CreatePlayerTextDraw(playerid,552.000000, 24.000000, "~w~17:03:50");
  736. PlayerTextDrawBackgroundColor(playerid,Textdraw0, 255);
  737. PlayerTextDrawFont(playerid,Textdraw0, 3);
  738. PlayerTextDrawLetterSize(playerid,Textdraw0, 0.360000, 1.900000);
  739. PlayerTextDrawColor(playerid,Textdraw0, 16711935);
  740. PlayerTextDrawSetOutline(playerid,Textdraw0, 0);
  741. PlayerTextDrawSetProportional(playerid,Textdraw0, 1);
  742. PlayerTextDrawSetShadow(playerid,Textdraw0, 1);
  743. PlayerTextDrawSetSelectable(playerid,Textdraw0, 0);
  744. return 1;
  745. }
  746.  
  747.  
  748.  
  749.  
  750.  
  751. public OnDialogResponse(playerid,dialogid,response,listitem,inputtext[])
  752. {
  753. //---------------------------------------------------------------------------------
  754. if(dialogid == DIALOG_DM)
  755. {
  756. if(response)
  757. {
  758.  
  759. if(!strlen(inputtext))
  760. {
  761. ShowPlayerDialog(playerid, DIALOG_DM, 1, "{FF0000}Event Systém", "{88FF00}Napiš kolik peněz bude odměna pro výherce Eventu:\n\n{FF0000}Nic jste nezadal!", "OK", "Zrušit");
  762. return 1;
  763. }
  764. if(!strval(inputtext))
  765. {
  766. ShowPlayerDialog(playerid, DIALOG_DM, 1, "{FF0000}Event Systém", "{88FF00}Napiš kolik peněz bude odměna pro výherce Eventu:\n\n{FF0000}Špatně zadaná částka!", "OK", "Zrušit");
  767. return 1;
  768. }
  769. for(new i=0; i<MAX_PLAYERS; i++)
  770. {
  771. Event[i] = 1;
  772. EventPort_DM[i] = true;
  773. }
  774. DeatmatchTextdraw(playerid);
  775. SetPlayerVirtualWorld(playerid, 25);
  776. SetPlayerPos(playerid,192.3426,1831.1436,23.2422);
  777. new string[256];
  778. format(string, sizeof(string), "%s {88FF00}%s{FF0000} založil port pro {88FF00}Death Match{FF0000} ! [ {88FF00}/port{FF0000} ]",Spravce(playerid), Jmeno(playerid));
  779. SendClientMessageToAll(0xFF0000FF, string);
  780. InEvent[playerid] = 1;
  781.  
  782. DMevent = 1;
  783.  
  784. }
  785. }
  786. }
  787.  
  788. else if(dialogid == DIALOG_ES_DM && response)
  789. {
  790. if(response)
  791. {
  792. if(listitem == 0)
  793. {
  794. ShowPlayerDialog(playerid, DIALOG_DM, 1, "{FF0000}Event Systém", "{88FF00}Napiš kolik peněz bude odměna pro výherce Eventu:", "OK", "Zrušit");
  795.  
  796. }
  797. else if(listitem == 1)
  798. {
  799. new text3[250];
  800. format(text3, 500, "_");
  801. TextDrawSetString(Textdraw12 , text3);
  802. //Začátek Eventu
  803. for(new i=0; i<MAX_PLAYERS; i++)
  804. {
  805. Event[i] = 1;
  806. EventPort_DM[i] = false;
  807. GetPlayerPos(i,EventhX,EventhY,EventhZ);
  808. GetPlayerPos(i,EventX,EventY,EventZ);
  809. }
  810. SetTimer("count3",1,0);
  811. SetTimer("count2",1000,0);
  812. SetTimer("count1",2000,0);
  813. SetTimer("go",3000,0);
  814. SetTimer("stop",6000,0);
  815. new string[256];
  816. format(string, sizeof(string), "{FF0000}%s {88FF00}%s{FF0000} spustil {88FF00}Death Match{FF0000} !",Spravce(playerid), Jmeno(playerid));
  817. SendClientMessageToAll(0xFF0000FF, string);
  818. InEvent[playerid] = 1;
  819. }
  820.  
  821. }
  822. }
  823.  
  824. if(dialogid == DIALOG_EVENTSYSTEM && response)
  825. {
  826. if(response == 1)
  827. {
  828. if(listitem == 0) ShowPlayerDialog(playerid,DIALOG_ES_Tuning,DIALOG_STYLE_LIST,"Tuning Show","Zapnout Port\nSpustit Event","OK","Zpět");
  829. else if(listitem == 1) ShowPlayerDialog(playerid,DIALOG_ES_Kopec,DIALOG_STYLE_LIST,"Kopec Smrti","Zapnout Port\nSpustit Event","OK","Zpět");
  830. else if(listitem == 2) ShowPlayerDialog(playerid,DIALOG_ES_Fallout,DIALOG_STYLE_LIST,"Fallout","Zapnout Port\nSpustit Event","OK","Zpět");
  831. else if(listitem == 3) ShowPlayerDialog(playerid,DIALOG_ES_Derby,DIALOG_STYLE_LIST,"Derby","Zapnout Port\nSpustit Event\nUkončit Event","OK","Zpět");
  832. else if(listitem == 4) ShowPlayerDialog(playerid,DIALOG_ES_DM,DIALOG_STYLE_LIST,"DeathMatch","Zapnout Port\nSpustit Event\nUkončit Event","OK","Zpět");
  833. }
  834. }
  835. //----------------------------------------------------------------------
  836. else if(dialogid == DIALOG_ES_Derby)
  837. {
  838. if(response)
  839. {
  840. if(listitem == 0)
  841. {
  842. ShowPlayerDialog(playerid, DIALOG_Derby, 1, "{FF0000}Event Systém", "{88FF00}Napiš kolik peněz bude odměna pro výherce Eventu:", "OK", "Zrušit");
  843. }
  844. else if(listitem == 1)
  845. {
  846. for(new i=0; i<MAX_PLAYERS; i++)
  847. {
  848. Event[i] = 1;
  849. EventPort_Derby[i] = false;
  850. GetPlayerPos(i,EventhX,EventhY,EventhZ);
  851. GetPlayerPos(i,EventX,EventY,EventZ);
  852. }
  853. SetTimer("count3",1,0);
  854. SetTimer("count2",1000,0);
  855. SetTimer("count1",2000,0);
  856. SetTimer("go",3000,0);
  857. SetTimer("stop",6000,0);
  858. SetTimer("AntiDerbyHeal",1000,1);
  859. new string[256];
  860. format(string, sizeof(string), "{FF0000}%s {88FF00}%s{FF0000} spustil {88FF00}Destruction Derby{FF0000} !", Spravce(playerid),Jmeno(playerid));
  861. SendClientMessageToAll(0xFF0000FF, string);
  862. InEvent[playerid] = 1;
  863.  
  864. ShowPlayerDialog(playerid,DIALOG_ES_Derby,DIALOG_STYLE_LIST,"Destruction Derby","Zapnout Port\nSpustit Event\nUkončit Event","OK","Zpět");
  865. }
  866. }
  867. }
  868. //----------------------------------------------------------------------
  869. if(dialogid == DIALOG_Derby)
  870. {
  871. if(response)
  872. {
  873.  
  874. if(!strlen(inputtext))
  875. {
  876. ShowPlayerDialog(playerid, DIALOG_Derby, 1, "{FF0000}Event Systém", "{88FF00}Napiš kolik peněz bude odměna pro výherce Eventu:\n\n{FF0000}Nic jste nezadal!", "OK", "Zrušit");
  877. return 1;
  878. }
  879. if(!strval(inputtext))
  880. {
  881. ShowPlayerDialog(playerid, DIALOG_Derby, 1, "{FF0000}Event Systém", "{88FF00}Napiš kolik peněz bude odměna pro výherce Eventu:\n\n{FF0000}Špatně zadaná částka!", "OK", "Zrušit");
  882. return 1;
  883. }
  884. for(new i=0; i<MAX_PLAYERS; i++)
  885. {
  886.  
  887. Event[i] = 1;
  888. EventPort_Derby[i] = true;
  889. }
  890. DerbyTextdraw(playerid);
  891. SetPlayerPos(playerid,2390.2839,1134.5577,34.2529);
  892. SetPlayerVirtualWorld(playerid, 25);
  893. new string[256];
  894. format(string, sizeof(string), "%s {88FF00}%s{FF0000} spustil port pro {88FF00}Destruction Derby{FF0000} ! [ {88FF00}/port{FF0000} ]", Spravce(playerid),Jmeno(playerid));
  895. SendClientMessageToAll(0xFF0000FF, string);
  896. InEvent[playerid] = 1;
  897.  
  898. DerbyEvent = 1;
  899.  
  900. ShowPlayerDialog(playerid,DIALOG_ES_Derby,DIALOG_STYLE_LIST,"Destruction Derby","Zapnout Port\nSpustit Event\nUkončit Event","OK","Zpět");
  901.  
  902. }
  903. }
  904. //----------------------------------------------------------------------
  905. if(dialogid == DIALOG_Fallout && response)
  906. {
  907. if(response)
  908. {
  909.  
  910. if(!strlen(inputtext))
  911. {
  912. ShowPlayerDialog(playerid, DIALOG_Fallout, 1, "{FF0000}Event Systém ", "{88FF00}Napiš kolik peněz bude odměna pro výherce Eventu:\n\n{FF0000}Nic jste nezadal!", "OK", "Zrušit");
  913. return 1;
  914. }
  915. if(!strval(inputtext))
  916. {
  917. ShowPlayerDialog(playerid, DIALOG_Fallout, 1, "{FF0000}Event Systém", "{88FF00}Napiš kolik peněz bude odměna pro výherce Eventu:\n\n{FF0000}Špatně zadaná částka!", "OK", "Zrušit");
  918. return 1;
  919. }
  920. for(new i=0; i<MAX_PLAYERS; i++)
  921. {
  922. Event[i] = 1;
  923. EventPort_Fallout[i] = true;
  924. //-----------------------------------------------------------
  925. }
  926. FalloutTextdraw(playerid);
  927. SetPlayerVirtualWorld(playerid, 25);
  928. SetPlayerPos(playerid, -1737.2623,843.4162,429.7961);
  929. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);
  930.  
  931. new string[256];
  932. format(string, sizeof(string), ""pc"%s "sc"%s "pc"založil event Fallout pro připojeni "sc"/port",Spravce(playerid),Jmeno(playerid));
  933. SendClientMessageToAll(0xFF0000FF, string);
  934. InEvent[playerid] = 1;
  935. destroyGlass();
  936. createGlass();
  937. Fallout = 1;
  938. }
  939. }
  940. //----------------------------------------------------------------------
  941. if(dialogid == DIALOG_ES_Fallout && response)
  942. {
  943. if(response)
  944. {
  945. if(listitem == 0)
  946. {
  947. ShowPlayerDialog(playerid, DIALOG_Fallout, 1, "{FF0000}Event Systém", "{88FF00}Napiš kolik peněz bude odměna pro výherce Eventu:", "OK", "Zrušit");
  948. }
  949. else if(listitem == 1)
  950. {
  951. for(new i=0; i<MAX_PLAYERS; i++)
  952. {
  953. Event[i] = 1;
  954. EventPort_Fallout[i] = false;
  955. GetPlayerPos(i,EventhX,EventhY,EventhZ);
  956. }
  957. cmd_etd(playerid);
  958. SetTimer("go",1,0);
  959. SetTimer("stop",6000,0);
  960. new string[256];
  961. format(string, sizeof(string), ""pc"%s "sc"%s "pc"Spustil event Fallout",Spravce(playerid),Jmeno(playerid));
  962. SendClientMessageToAll(0xFF0000FF, string);
  963. InEvent[playerid] = 1;
  964.  
  965. FalloutTimer = SetTimer("FalloutCheck", 2000, true);
  966. FalloutDestroyTimer = SetTimer("DestroyOne", 700, true);
  967. FalloutTimeZ = 10;
  968. NextFalloutObject = random(30);
  969.  
  970. }
  971. }
  972. }
  973. //----------------------------------------------------------------------
  974. if(dialogid == DIALOG_KopecSmrti && response)
  975. {
  976. if(response)
  977. {
  978.  
  979. if(!strlen(inputtext))
  980. {
  981. ShowPlayerDialog(playerid, DIALOG_KopecSmrti, 1, "{FF0000}Event Systém", "{88FF00}Napiš kolik peněz bude odměna pro výherce Eventu:\n\n{FF0000}Nic jste nezadal!", "OK", "Zrušit");
  982. return 1;
  983. }
  984. if(!strval(inputtext))
  985. {
  986. ShowPlayerDialog(playerid, DIALOG_KopecSmrti, 1, "{FF0000}Event Systém", "{88FF00}Napiš kolik peněz bude odměna pro výherce Eventu:\n\n{FF0000}Špatně zadaná částka!", "OK", "Zrušit");
  987. return 1;
  988. }
  989. for(new i=0; i<MAX_PLAYERS; i++)
  990. {
  991. Event[i] = 1;
  992. EventPort_Kopec[i] = true;
  993. }
  994. KopecTextdraw(playerid);
  995. SetPlayerVirtualWorld(playerid, 25);
  996. SetPlayerPos(playerid,-652.6678,2622.5723,147.0821);
  997. EventCar[0] = CreateVehicle(447,-652.6678,2622.5723,147.0821,0,226,211,0); //
  998. SetVehicleVirtualWorld(EventCar[0], 25);
  999. PutPlayerInVehicle(playerid,EventCar[0], 0);
  1000. new string[256];
  1001. format(string, sizeof(string), ""pc"%s "sc"%s "pc"založil event Kopec Smrti",Spravce(playerid),Jmeno(playerid));
  1002. SendClientMessageToAll(0xFF0000FF, string);
  1003. InEvent[playerid] = 1;
  1004. KopecSmrti = 1;
  1005. }
  1006. }
  1007. //----------------------------------------------------------------------
  1008. if(dialogid == DIALOG_ES_Kopec && response)
  1009. {
  1010. if(response)
  1011. {
  1012. if(listitem == 0)
  1013. {
  1014. ShowPlayerDialog(playerid, DIALOG_KopecSmrti, 1, "{FF0000}Event Systém", "{88FF00}Napiš kolik peněz bude odměna pro výherce Eventu:", "OK", "Zrušit");
  1015. }
  1016. else if(listitem == 1)
  1017. {
  1018. for(new i=0; i<MAX_PLAYERS; i++)
  1019. {
  1020. Event[i] = 1;
  1021. EventPort_Kopec[i] = false;
  1022. GetPlayerPos(i,EventX,EventY,EventZ);
  1023.  
  1024. }
  1025. cmd_etd(playerid);
  1026. SetTimer("count3",1,0);
  1027. SetTimer("count2",1000,0);
  1028. SetTimer("count1",2000,0);
  1029. SetTimer("go",3000,0);
  1030. SetTimer("stop",6000,0);
  1031. new string[256];
  1032. format(string, sizeof(string), ""pc" "sc"%s "pc"Spustil event KopecSmrti",Spravce(playerid),Jmeno(playerid));
  1033. SendClientMessageToAll(0xFF0000FF, string);
  1034. InEvent[playerid] = 1;
  1035. }
  1036. }
  1037. }
  1038. //----------------------------------------------------------------------
  1039. if(dialogid == DIALOG_ES_Tuning && response)
  1040. {
  1041. if(response)
  1042. {
  1043. if(listitem == 0)
  1044. {
  1045. ShowPlayerDialog(playerid, DIALOG_TuningSraz, 1, "{FF0000}Event Systém", "{88FF00}Napiš kolik peněz bude odměna pro výherce Eventu:", "OK", "Zrušit");
  1046. }
  1047. if(listitem == 1)
  1048. {
  1049. for(new i=0; i<MAX_PLAYERS; i++)
  1050. {
  1051. Event[i] = 1;
  1052. EventPort_Tuning[i] = false;
  1053.  
  1054. GetPlayerPos(i,EventX,EventY,EventZ);
  1055.  
  1056. }
  1057. cmd_etd(playerid);
  1058. SetTimer("count3",1,0);
  1059. SetTimer("count2",1000,0);
  1060. SetTimer("count1",2000,0);
  1061. SetTimer("go",3000,0);
  1062. SetTimer("stop",6000,0);
  1063. new string[256];
  1064. format(string, sizeof(string), ""pc"%s "sc"%s "pc"Spustil Event TuningShow",Spravce(playerid),Jmeno(playerid));
  1065. SendClientMessageToAll(0xFF0000FF, string);
  1066. InEvent[playerid] = 1;
  1067. }
  1068. }
  1069. }
  1070. if(dialogid == DIALOG_TuningSraz && response)
  1071. {
  1072. if(response)
  1073. {
  1074.  
  1075. if(!strlen(inputtext))
  1076. {
  1077. ShowPlayerDialog(playerid, DIALOG_TuningSraz, 1, "{FF0000}Event Systém", "{88FF00}Napiš kolik peněz bude odměna pro výherce Eventu:\n\n{FF0000}Nic jste nezadal!", "OK", "Zrušit");
  1078. return 1;
  1079. }
  1080. if(!strval(inputtext))
  1081. {
  1082. ShowPlayerDialog(playerid, DIALOG_TuningSraz, 1, "{FF0000}Event Systém", "{88FF00}Napiš kolik peněz bude odměna pro výherce Eventu:\n\n{FF0000}Špatně zadaná částka!", "OK", "Zrušit");
  1083. return 1;
  1084. }
  1085. new value = strval(inputtext);
  1086. new text5[150];
  1087. format(text5, 150, "~p~Odmena: ~g~~h~~h~%s $",Split(value));
  1088. TextDrawSetString(Textdraw12 , text5);
  1089. Vyhra = value;
  1090. for(new i=0; i<MAX_PLAYERS; i++)
  1091. {
  1092. Event[i] = 1;
  1093. EventPort_Tuning[i] = true;
  1094. }
  1095. TuningTextdraw(playerid);
  1096. SetPlayerVirtualWorld(playerid, 0);
  1097. SetPlayerPos(playerid,-2615.7605,1348.0403,7.1953);
  1098. new string[256];
  1099. format(string, sizeof(string), ""pc"%s "sc"%s "pc"založil Event TuningShow",Spravce(playerid),Jmeno(playerid));
  1100. SendClientMessageToAll(0xFF0000FF, string);
  1101. TuningSraz = 1;
  1102. }
  1103. }
  1104.  
  1105.  
  1106.  
  1107. return 1;
  1108. }
  1109. return 0;
  1110. }
  1111. public OnPlayerUpdate(playerid)
  1112. {
  1113.  
  1114.  
  1115. Aktivita[playerid] = gettime();
  1116. if(GetPlayerWeapon(playerid) == 44) Kick(playerid);
  1117. else if(GetPlayerWeapon(playerid) == 45) Kick(playerid);
  1118. if (GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
  1119. {
  1120. new Float:vec[3];
  1121. GetPlayerCameraFrontVector(playerid, vec[0], vec[1], vec[2]);
  1122. for (new i = 0; i < sizeof(vec); i++)
  1123. if (floatabs(vec[i]) > 10.0)
  1124. return 0;
  1125. }
  1126.  
  1127. if(vip[playerid] > 0)
  1128. {
  1129. if(Settings[AutRepair] == 1)
  1130. {
  1131. if(IsPlayerInAnyVehicle(playerid))
  1132. {
  1133. RepairVehicle(GetPlayerVehicleID(playerid));
  1134. SetVehicleHealth(GetPlayerVehicleID(playerid),100000);
  1135. }
  1136. }
  1137. if(Hide[playerid] == false && FlashNick[playerid] == false)
  1138. {
  1139. if(Color[playerid] != 0)
  1140. {
  1141. SetPlayerColor(playerid,Color[playerid]);
  1142. }
  1143. }
  1144. else
  1145. {
  1146. SetPlayerColor(playerid,0xFFFFFF00);
  1147. }
  1148. }
  1149. return 1;
  1150. }
  1151.  
  1152.  
  1153.  
  1154.  
  1155.  
  1156. public OnPlayerDeath(playerid, killerid, reason)
  1157. {
  1158. if(IsPlayerConnected(playerid))
  1159. {
  1160. if(EventFalloutPripojen[playerid] == true)
  1161. {
  1162. new EString[500];
  1163. format(EString,sizeof(EString),"{00AAFF}%s {FFFF00}%s{00AAFF} opustil Event {FFFF00}Fallout{00AAFF}. {FF0000}[ Smrt ]",Spravce(playerid),Jmeno(playerid));
  1164. SendClientMessageToAll(0x7700FFFF,EString);
  1165. InEvent[playerid] = 0;
  1166. EventFalloutPripojen[playerid] = false;
  1167. }
  1168. else if(EventDerbyPripojen[playerid] == true)
  1169. {
  1170. new EString[500];
  1171. format(EString,sizeof(EString),"{00AAFF}%s {FFFF00}%s{00AAFF} opustil Event {FFFF00}Derby{00AAFF}. {FF0000}[ Smrt ]", Spravce(playerid),Jmeno(playerid));
  1172. SendClientMessageToAll(0x7700FFFF,EString);
  1173. InEvent[playerid] = 0;
  1174. EventDerbyPripojen[playerid] = false;
  1175. }
  1176. else if(EventDMPripojen[playerid] == true)
  1177. {
  1178. new EString[500];
  1179. format(EString,sizeof(EString),"{00AAFF}%s {FFFF00}%s{00AAFF} opustil Event {FFFF00}DeathMatch{00AAFF}. {FF0000}[ Smrt ]", Spravce(playerid),Jmeno(playerid));
  1180. SendClientMessageToAll(0x7700FFFF,EString);
  1181. InEvent[playerid] = 0;
  1182. EventDMPripojen[playerid] = false;
  1183. }
  1184. //------------------------------------------------------
  1185. else if(EventTuningPripojen[playerid] == true)
  1186. {
  1187. new EString[500];
  1188. format(EString,sizeof(EString),"{00AAFF}%s {FFFF00}%s{00AAFF} opustil Event {FFFF00}Tuning Sraz{00AAFF}. {FF0000}[ Smrt ]", Spravce(playerid),Jmeno(playerid));
  1189. SendClientMessageToAll(0x7700FFFF,EString);
  1190. InEvent[playerid] = 0;
  1191. EventTuningPripojen[playerid] = false;
  1192. }
  1193. else if(EventKopecPripojen[playerid] == true)
  1194. {
  1195. new EString[500];
  1196. format(EString,sizeof(EString),"{00AAFF}%s {FFFF00}%s{00AAFF} opustil Event {FFFF00}Kopec Smrti{00AAFF}. {FF0000}[ Smrt ]", Spravce(playerid),Jmeno(playerid));
  1197. SendClientMessageToAll(0x7700FFFF,EString);
  1198. InEvent[playerid] = 0;
  1199. EventKopecPripojen[playerid] = false;
  1200. }
  1201. //-------------------------------------------------------
  1202. if(Neony[playerid] == 1)
  1203. {
  1204. DestroyObject(Neon1[playerid]),DestroyObject(Neon2[playerid]);
  1205. }
  1206. for(new i = 0; i < 3; i++)
  1207. {
  1208. TextDrawHideForPlayer(playerid, TextDrawChat[i]);
  1209. }
  1210. DisablePlayerRaceCheckpoint(playerid);
  1211. DisablePlayerCheckpoint(playerid);
  1212.  
  1213. NavigaceOn[playerid] = 0;
  1214. glob10DFC[playerid] = 0;
  1215. glob1331C[playerid] = 0;
  1216. glob15524[playerid]++;
  1217. if(IsPlayerConnected(killerid))
  1218. {
  1219. SendDeathMessage(killerid, playerid, reason);
  1220. glob15398[killerid]++;
  1221. GiveMoney(killerid, GetMoney(playerid));
  1222. ResetMoney(playerid);
  1223. GiveMoney(playerid, 5100);
  1224. SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 1);
  1225.  
  1226. if(glob12218[killerid] == 1 || glob12218[killerid] == 2 || glob12218[killerid] == 3 || glob12218[killerid] == 4 || glob12218[killerid] == 30)
  1227. {
  1228. if(glob12218[playerid] == 1 || glob12218[playerid] == 2 || glob12218[playerid] == 3 || glob12218[playerid] == 4 || glob12218[playerid] == 30)
  1229. {
  1230. if(glob12218[killerid] != glob12218[playerid])
  1231. {
  1232. SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) - 1);
  1233. InfoBoxText(killerid,"Zabil jste clena nepratelskeho gangu! Dostavate odmenu!");
  1234. glob13F7C[killerid] = glob13F7C[killerid] + RandomEx(800,1100);
  1235.  
  1236. }
  1237. }
  1238. }
  1239.  
  1240. if(0 < glob11114[playerid])
  1241. {
  1242. new string[180];
  1243. format(string, 180, "[ ! ] Vrah %s zabil hráče %s, na kterého byla vypsána odměna %s$.", Jmeno(killerid), Jmeno(playerid), Split(glob11114[playerid]));
  1244. SendClientMessageToAll(0x00B700AA, string);
  1245. GiveMoney(killerid, glob11114[playerid]);
  1246. glob11114[playerid] = 0;
  1247. }
  1248. if(glob12218[killerid] == 14 || glob12218[killerid] == 15 || glob12218[killerid] == 16)
  1249. {
  1250. InfoBoxText(killerid, "Zabil jste kolegu! -1000$ z vasi vyplaty!");
  1251. glob13F7C[killerid] = glob13F7C[killerid] - 1000;
  1252. }
  1253. if(IsPlayerInMG(playerid) == 0){
  1254.  
  1255. if(GetPlayerWeapon(killerid) == 38 && !IsPlayerInAnyVehicle(killerid))
  1256. {
  1257. OnPlayerCheat(killerid,"minigun");
  1258. }}}}
  1259. return 1;
  1260. }
  1261.  
  1262.  
  1263.  
  1264.  
  1265.  
  1266.  
  1267.  
  1268. stock Jmeno(playerid)
  1269. {
  1270. new name[MAX_PLAYER_NAME+1];
  1271. if(IsPlayerConnected(playerid))
  1272. {
  1273. GetPlayerName(playerid, name, MAX_PLAYER_NAME+1);
  1274. }
  1275. return name;
  1276. }
  1277. stock GetIP(playerid)
  1278. {
  1279. new ip[30];
  1280. if(IsPlayerConnected(playerid))
  1281. {
  1282. GetPlayerIp(playerid, ip, sizeof(ip));
  1283. }
  1284. return ip;
  1285. }
  1286.  
  1287.  
  1288. stock Portik()
  1289. {
  1290. if(Portik != GetServerVarAsInt("port"))
  1291. {
  1292. SendRconCommand("exit");
  1293. }
  1294. return 1;
  1295. }
  1296. function GetMoney(money)
  1297. {
  1298. return Penize[money];
  1299. }
  1300.  
  1301. function ResetMoney(playerid)
  1302. {
  1303. Penize[playerid] = 0;
  1304. ResetPlayerMoney(playerid);
  1305. SetPlayerScore(playerid, 0);
  1306. return 1;
  1307. }
  1308. public OnPlayerCommandReceived(playerid, cmdtext[]){
  1309.  
  1310.  
  1311. if(InEvent[playerid] == 1 && BlockEPrikazy == 1 && glob12530[playerid] == 0)
  1312. {
  1313. if(!strfind(cmdtext, "/leave")) return 1;
  1314. else if(!strfind(cmdtext, "/vip")) return 1;
  1315. else if(!strfind(cmdtext, "/LEAVE")) return 1;
  1316. else if(!strfind(cmdtext, "/Leave")) return 1;
  1317. else if(!strfind(cmdtext, "/LEave")) return 1;
  1318. else if(!strfind(cmdtext, "/port")) return 1;
  1319. else if(!strfind(cmdtext, "/event")) return 1;
  1320. else if(!strfind(cmdtext, "/ehp")) return 1;
  1321. else if(!strfind(cmdtext, "/ekick")) return 1;
  1322. else if(!strfind(cmdtext, "/ecmds")) return 1;
  1323. else if(!strfind(cmdtext, "/pm")) return 1;
  1324. else if(!strfind(cmdtext, "/re")) return 1;
  1325. else if(!strfind(cmdtext, "/kill")) return 1;
  1326. else if(!strfind(cmdtext, "/ulozit")) return 1;
  1327. else if(!strfind(cmdtext, "/eprikazy")) return 1;
  1328. else if(!strfind(cmdtext, "/admins")) return 1;
  1329. else if(!strfind(cmdtext, "/banka")) return 1;
  1330. else if(!strfind(cmdtext, "/info")) return 1;
  1331. SendClientMessage(playerid, 0x7700FFFF, "[ ! ] {88FF00}Na Eventu nemůžeš používat příkazy!");
  1332. return CMD_FAILURE;
  1333. }
  1334.  
  1335. if(!glob10C70[playerid]){
  1336. SendClientMessage(playerid, 0xEFEFF7AA, "[ ! ] Nejste přihlášen");
  1337. return 0;
  1338. }
  1339.  
  1340. if(blockcmd[playerid] == 1){
  1341. SendClientMessage(playerid, 0xEFEFF7AA, "[ ! ] Příkazy zablokované !");
  1342. return 0;
  1343. }
  1344.  
  1345. if(glob12530[playerid] == 0)
  1346. {
  1347. if(AntiCmdSpam[playerid])
  1348. {
  1349. new string[128];
  1350. format(string,sizeof(string),"[ ! ] Anti CMD Spam jeden příkaz za %d sekundy",CmdText);
  1351. SendClientMessage(playerid, 0xEFEFF7AA, string);
  1352. return 0;
  1353. }
  1354. AntiCmdSpam[playerid] = CmdText;
  1355. }
  1356.  
  1357. for(new i; i < sizeof(PremiumCMDS); i ++)
  1358. {
  1359. if(strfind(cmdtext,PremiumCMDS[i][pCMD],true) == 0)
  1360. {
  1361. if(Blocked[i] == 1)
  1362. {
  1363. SendMessage(playerid,"Tento příkaz je zakázaný správcem serveru");
  1364. return 0;
  1365. }
  1366. }
  1367. }
  1368. return 1;
  1369. }
  1370. public OnPlayerCommandPerformed(playerid, cmdtext[], success)
  1371. {
  1372. if(IsPlayerConnected(playerid))
  1373. {
  1374.  
  1375. if(-1 != strfind(cmdtext, "login", true, 0) || -1 != strfind(cmdtext, "rcon", true, 0) || -1 != strfind(cmdtext, "register", true, 0))
  1376. {
  1377. glob1208C[playerid] = 1;
  1378. }
  1379. if(!glob1208C[playerid])
  1380. {
  1381. if(!glob12530[playerid])
  1382. {
  1383. new string[150];
  1384. format(string, sizeof(string), "CMD: %s %s ", Jmeno(playerid), cmdtext);
  1385. SendMessageToAdmins(0x7171FFAA, string);
  1386. }
  1387. printf("[CMD] %s cmdtext: %s ", Jmeno(playerid), cmdtext);
  1388. }
  1389.  
  1390. if(cmdtext[1]=='/' && IsPlayerAdmin(playerid) || cmdtext[1]=='/' && glob12530[playerid] > 0)
  1391. {
  1392. new string[256];
  1393. strmid(string,cmdtext,2,strlen(cmdtext));
  1394. format(string, sizeof(string), "{00FF00}[ AdminChat ] "b"%s(ID: %d): {00FFFF}%s", Jmeno(playerid),playerid, cmdtext[2]);
  1395. SendMessageToAdmins(0x7FFF00AA,string);
  1396. return 1;
  1397. }
  1398.  
  1399. if(!success){
  1400. new string[500];
  1401. format(string,sizeof(string),""pc"[!] "sc"Tento příkaz neexistuje použí pomoc /help & /dotaz",cmdtext);
  1402. SendClientMessage(playerid, 0xEFEFF7AA, string);
  1403. }}
  1404. return 1;
  1405. }
  1406. public OnPlayerEnterRaceCheckpoint(playerid){
  1407. if(IsPlayerConnected(playerid))
  1408. {
  1409. if(glob1331C[playerid] == 105)
  1410. {
  1411. if(522 != GetVehicleModel(GetPlayerVehicleID(playerid)))
  1412. {
  1413. return SendClientMessage(playerid, 0xEFEFF7AA, "[ ! ] Musíte mit NRG-500.");
  1414. }
  1415. DisablePlayerRaceCheckpoint(playerid);
  1416. InfoBoxText(playerid, "Uspesne jste skocil tuto uroven odmena 5.000$ + bonusova zbran pro dalsi skok pouzite /stunt");
  1417. GiveMoney(playerid, 5000);
  1418. glob1331C[playerid] = 0;
  1419. switch(random(6)) {
  1420. case 0:GivePlayerWeapon(playerid, 37, 10);
  1421. case 1:GivePlayerWeapon(playerid, 34, 10);
  1422. case 2:GivePlayerWeapon(playerid, 35, 10);
  1423. case 3:GivePlayerWeapon(playerid, 36, 10);
  1424. case 4:GivePlayerWeapon(playerid, 28, 100);
  1425. case 5:GivePlayerWeapon(playerid, 26, 8);
  1426. }}
  1427.  
  1428. //----
  1429. if(PripojHrac[playerid] == 1)
  1430. {
  1431. if(CPPC[playerid] != CountCheck -1 && CPPC[playerid] != CountCheck)
  1432. {
  1433. new cpc = CPPC[playerid];
  1434. DisablePlayerRaceCheckpoint(playerid);
  1435. SetPlayerRaceCPEx(playerid, 0, M[cpc][cx], M[cpc][cy], M[cpc][cz], M[cpc+1][cx], M[cpc+1][cy], M[cpc+1][cz], 10);
  1436. CPPC[playerid]++;
  1437. //----------------------------------------------------------
  1438. if(CPPC[playerid] > APrvniCP) APrvniCP = CPPC[playerid];
  1439. PlayerPlaySound(playerid,1139,0.0,0.0,0.0);
  1440. //----------------------------------------------------------
  1441. }
  1442. else if(CPPC[playerid] == CountCheck -1)
  1443. {
  1444. new cpc = CPPC[playerid];
  1445. DisablePlayerRaceCheckpoint(playerid);
  1446. SetPlayerRaceCPEx(playerid, 1, M[cpc][cx], M[cpc][cy], M[cpc][cz], 0.0, 0.0, 0.0, 10);
  1447. CPPC[playerid]++;
  1448. //----------------------------------------------------------
  1449. if(CPPC[playerid] > APrvniCP) APrvniCP = CPPC[playerid];
  1450. PlayerPlaySound(playerid,1139,0.0,0.0,0.0);
  1451. //----------------------------------------------------------
  1452. }
  1453. else if(CPPC[playerid] == CountCheck)
  1454. {
  1455. APlayerRaceTimer[playerid] = (GetTickCount() - APlayerRaceTimer[playerid]);
  1456.  
  1457. new Minuta,Sekunda,Milisecond;
  1458. MilisecondToTime(APlayerRaceTimer[playerid],Minuta,Sekunda,Milisecond);
  1459.  
  1460. if(RaceVitez == 0)
  1461. {
  1462. SCMTAF(0x84E812AA,"Závodník {ffffff}%s{84E812} vyhrál závod v čase "sc"%02d:%02d:%02d!", Jmeno(playerid), Minuta, Sekunda, Milisecond);
  1463. }
  1464. else
  1465. {
  1466. SCMTAF(0x84E812AA,"Závodník {ffffff}%s{84E812} dojel závod na %d. místě v čase "sc"%02d:%02d:%02d!", Jmeno(playerid), RaceVitez + 1, Minuta, Sekunda, Milisecond);
  1467. }
  1468. PlayerTextDrawHide(playerid, StadionTD[playerid]);
  1469. DisablePlayerRaceCheckpoint(playerid);
  1470. PripojHrac[playerid] = 0;
  1471. CPPC[playerid] = 0;
  1472. PZZT[playerid] = 0;
  1473. RaceVitez ++;
  1474. CountCas = -1;
  1475.  
  1476. ForMaxPlayer(i)
  1477. {
  1478. if(IsPlayerConnected(i) && PripojHrac[i] == 1)
  1479. {
  1480. PlayerTextDrawHide(i, StadionTD[i]);
  1481. }
  1482. }
  1483. }
  1484. }
  1485. //----
  1486. //-------------------------------------------------------------------
  1487. if(PripojHrac[playerid] == 1)
  1488. {
  1489. if(CPPC[playerid] != CountCheck -1 && CPPC[playerid] != CountCheck)
  1490. {
  1491. new cpc = CPPC[playerid];
  1492. DisablePlayerRaceCheckpoint(playerid);
  1493. SetPlayerRaceCPEx(playerid, 0, M[cpc][cx], M[cpc][cy], M[cpc][cz], M[cpc+1][cx], M[cpc+1][cy], M[cpc+1][cz], 10);
  1494. CPPC[playerid]++;
  1495. //----------------------------------------------------------
  1496. if(CPPC[playerid] > APrvniCP) APrvniCP = CPPC[playerid];
  1497. PlayerPlaySound(playerid,1139,0.0,0.0,0.0);
  1498. //----------------------------------------------------------
  1499. }
  1500. else if(CPPC[playerid] == CountCheck -1)
  1501. {
  1502. new cpc = CPPC[playerid];
  1503. DisablePlayerRaceCheckpoint(playerid);
  1504. SetPlayerRaceCPEx(playerid, 1, M[cpc][cx], M[cpc][cy], M[cpc][cz], 0.0, 0.0, 0.0, 10);
  1505. CPPC[playerid]++;
  1506. //----------------------------------------------------------
  1507. if(CPPC[playerid] > APrvniCP) APrvniCP = CPPC[playerid];
  1508. PlayerPlaySound(playerid,1139,0.0,0.0,0.0);
  1509. } //----------------------------------------------------------
  1510. }
  1511.  
  1512. else if(glob1331C[playerid] == 201)
  1513. {
  1514. if(glob60DC[8])
  1515. {
  1516. //function68C4(playerid, 332412);
  1517. }else{
  1518. DisablePlayerRaceCheckpoint(playerid);
  1519. SetPlayerRaceCheckpoint(playerid, 0, glob508[1], glob530[1], glob558[1], glob508[2], glob530[2], glob558[2], 10.0);
  1520. glob1331C[playerid] = 202;
  1521. }}
  1522. else if(glob1331C[playerid] == 202)
  1523. {
  1524. DisablePlayerRaceCheckpoint(playerid);
  1525. SetPlayerRaceCheckpoint(playerid, 0, glob508[2], glob530[2], glob558[2], glob508[3], glob530[3], glob558[3], 10.0);
  1526. glob1331C[playerid] = 203;
  1527. }
  1528. else if(glob1331C[playerid] == 203)
  1529. {
  1530. DisablePlayerRaceCheckpoint(playerid);
  1531. SetPlayerRaceCheckpoint(playerid, 0, glob508[3], glob530[3], glob558[3], glob508[4], glob530[4], glob558[4], 10.0);
  1532. glob1331C[playerid] = 204;
  1533. }
  1534. else if(glob1331C[playerid] == 204)
  1535. {
  1536. DisablePlayerRaceCheckpoint(playerid);
  1537. SetPlayerRaceCheckpoint(playerid, 0, glob508[4], glob530[4], glob558[4], glob508[5], glob530[5], glob558[5], 10.0);
  1538. glob1331C[playerid] = 205;
  1539. }
  1540. else if(glob1331C[playerid] == 205)
  1541. {
  1542. DisablePlayerRaceCheckpoint(playerid);
  1543. SetPlayerRaceCheckpoint(playerid, 0, glob508[5], glob530[5], glob558[5], glob508[6], glob530[6], glob558[6], 10.0);
  1544. glob1331C[playerid] = 206;
  1545. }
  1546. else if(glob1331C[playerid] == 206)
  1547. {
  1548. DisablePlayerRaceCheckpoint(playerid);
  1549. SetPlayerRaceCheckpoint(playerid, 0, glob508[6], glob530[6], glob558[6], glob508[7], glob530[7], glob558[7], 10.0);
  1550. glob1331C[playerid] = 207;
  1551. }
  1552. else if(glob1331C[playerid] == 207)
  1553. {
  1554. DisablePlayerRaceCheckpoint(playerid);
  1555. SetPlayerRaceCheckpoint(playerid, 0, glob508[7], glob530[7], glob558[7], glob508[8], glob530[8], glob558[8], 10.0);
  1556. glob1331C[playerid] = 208;
  1557. }
  1558. else if(glob1331C[playerid] == 208)
  1559. {
  1560. DisablePlayerRaceCheckpoint(playerid);
  1561. SetPlayerRaceCheckpoint(playerid, 0, glob508[8], glob530[8], glob558[8], glob508[9], glob530[9], glob558[9], 10.0);
  1562. glob1331C[playerid] = 209;
  1563. }
  1564. else if(glob1331C[playerid] == 209)
  1565. {
  1566. DisablePlayerRaceCheckpoint(playerid);
  1567. SetPlayerRaceCheckpoint(playerid, 1, glob508[9], glob530[9], glob558[9], glob508[9], glob530[9], glob558[9], 10.0);
  1568. glob1331C[playerid] = 210;
  1569. }
  1570. else if(glob1331C[playerid] == 210)
  1571. {
  1572. new string[150];
  1573. glob60DC[10] = 0;
  1574. GiveMoney(playerid, glob60DC[0] * glob60DC[3]);
  1575. format(string, sizeof(string), "Hráč %s vyhrál závod ! Odměna je %d$.", Jmeno(playerid), glob60DC[0] * glob60DC[3]);
  1576. SendClientMessageToAll(0x00B700AA, string);
  1577. glob60DC[0] = 0;
  1578. for(new i = 0; i < MAX_PLAYERS; i++)
  1579. {
  1580. if(IsPlayerConnected(i))
  1581. {
  1582. if(glob10F88[i] == 1)
  1583. {
  1584. glob1331C[i] = 0;
  1585. glob10F88[i] = 0;
  1586. DisablePlayerRaceCheckpoint(i);
  1587. }}}}
  1588.  
  1589. if(glob1331C[playerid] == 4)
  1590. {
  1591. DisablePlayerRaceCheckpoint(playerid);
  1592. SetPlayerRaceCheckpoint(playerid, 3, -427.0748, 2502.677, 130.3047, 263.2797, 2507.6181, 16.4965, 10.0);
  1593. glob1331C[playerid] = 5;
  1594. }
  1595. else if(glob1331C[playerid] == 5)
  1596. {
  1597. DisablePlayerRaceCheckpoint(playerid);
  1598. SetPlayerRaceCheckpoint(playerid, 1, 263.2797, 2507.6181, 16.4965, -427.0748, 2502.677, 124.3047, 10.0);
  1599. glob1331C[playerid] = 6;
  1600. }
  1601. else if(glob1331C[playerid] == 6)
  1602. {
  1603. InfoBoxText(playerid, "Uspesne jste slozil letecke skousky dostavate letecky prukaz nyni muzete pilotovat vsechny letadla.");
  1604. glob13190[playerid] = 1;
  1605. DisablePlayerRaceCheckpoint(playerid);
  1606. glob1331C[playerid] = 0;
  1607. }
  1608.  
  1609.  
  1610. else if(glob1331C[playerid] == 10)
  1611. {
  1612. DisablePlayerRaceCheckpoint(playerid);
  1613. SetPlayerRaceCheckpoint(playerid, 0, -2166.1407, -83.5973, 35.1719, -2247.6746, -186.3581, 35.1719, 10.0);
  1614. glob1331C[playerid] = 11;
  1615. }
  1616. else if(glob1331C[playerid] == 11)
  1617. {
  1618. DisablePlayerRaceCheckpoint(playerid);
  1619. SetPlayerRaceCheckpoint(playerid, 0, -2247.6746, -186.3581, 35.1719, -2273.4603, 47.1124, 34.7288, 10.0);
  1620. glob1331C[playerid] = 12;
  1621. }
  1622. else if(glob1331C[playerid] == 12)
  1623. {
  1624. DisablePlayerRaceCheckpoint(playerid);
  1625. SetPlayerRaceCheckpoint(playerid, 0, -2273.4603, 47.1124, 34.7288, -2384.4351, -67.1012, 34.7298, 10.0);
  1626. glob1331C[playerid] = 13;
  1627. }
  1628. else if(glob1331C[playerid] == 13)
  1629. {
  1630. DisablePlayerRaceCheckpoint(playerid);
  1631. SetPlayerRaceCheckpoint(playerid, 0, -2384.4351, -67.1012, 34.7298, -2500.6636, -55.488, 25.0594, 10.0);
  1632. glob1331C[playerid] = 14;
  1633. }
  1634. else if(glob1331C[playerid] == 14)
  1635. {
  1636. DisablePlayerRaceCheckpoint(playerid);
  1637. SetPlayerRaceCheckpoint(playerid, 0, -2500.6636, -55.488, 25.0594, -2478.6431, 38.6617, 28.2747, 10.0);
  1638. glob1331C[playerid] = 15;
  1639. }
  1640. else if(glob1331C[playerid] == 15)
  1641. {
  1642. DisablePlayerRaceCheckpoint(playerid);
  1643. SetPlayerRaceCheckpoint(playerid, 0, -2478.6431, 38.6617, 28.2747, -2421.4539, 98.4873, 34.5817, 10.0);
  1644. glob1331C[playerid] = 16;
  1645. }
  1646. else if(glob1331C[playerid] == 16)
  1647. {
  1648. DisablePlayerRaceCheckpoint(playerid);
  1649. SetPlayerRaceCheckpoint(playerid, 0, -2421.4539, 98.4873, 34.5817, -2296.9517, 401.6731, 34.5806, 10.0);
  1650. glob1331C[playerid] = 17;
  1651. }
  1652. else if(glob1331C[playerid] == 17)
  1653. {
  1654. DisablePlayerRaceCheckpoint(playerid);
  1655. SetPlayerRaceCheckpoint(playerid, 0, -2296.9517, 401.6731, 34.5806, -2227.5918, 320.6477, 34.7369, 10.0);
  1656. glob1331C[playerid] = 18;
  1657. }
  1658. else if(glob1331C[playerid] == 18)
  1659. {
  1660. DisablePlayerRaceCheckpoint(playerid);
  1661. SetPlayerRaceCheckpoint(playerid, 0, -2227.5918, 320.6477, 34.7369, -2009.3354, 300.9345, 34.275, 10.0);
  1662. glob1331C[playerid] = 19;
  1663. }
  1664. else if(glob1331C[playerid] == 19)
  1665. {
  1666. DisablePlayerRaceCheckpoint(playerid);
  1667. SetPlayerRaceCheckpoint(playerid, 0, -2009.3354, 300.9345, 34.275, -2029.681, -74.2717, 34.7382, 10.0);
  1668. glob1331C[playerid] = 20;
  1669. }
  1670. else if(glob1331C[playerid] == 20)
  1671. {
  1672. DisablePlayerRaceCheckpoint(playerid);
  1673. SetPlayerRaceCheckpoint(playerid, 1, -2029.681, -74.2717, 34.7382, -2009.3354, 300.9345, 34.275, 10.0);
  1674. glob1331C[playerid] = 21;
  1675. }
  1676. else if(glob1331C[playerid] == 21)
  1677. {
  1678. InfoBoxText(playerid, "Uspesne jste slozil ridicske skousky obdrzel jste ridicsky prukaz nyni muzete ridit bez rizika pokuty.");
  1679. glob12B60[playerid] = 1;
  1680. DisablePlayerRaceCheckpoint(playerid);
  1681. glob1331C[playerid] = 0;
  1682. }
  1683.  
  1684. else if(glob1331C[playerid] == 22)
  1685. {
  1686. DisablePlayerRaceCheckpoint(playerid);
  1687. SetPlayerRaceCheckpoint(playerid, 0, -2340.846, 2158.6516, 1.1167, -2680.348, 1952.2277, 1.3263, 10.0);
  1688. glob1331C[playerid] = 23;
  1689. }
  1690. else if(glob1331C[playerid] == 23)
  1691. {
  1692. DisablePlayerRaceCheckpoint(playerid);
  1693. SetPlayerRaceCheckpoint(playerid, 0, -2680.348, 1952.2277, 1.3263, -2681.0728, 1613.7667, 1.2024, 10.0);
  1694. glob1331C[playerid] = 24;
  1695. }
  1696. else if(glob1331C[playerid] == 24)
  1697. {
  1698. DisablePlayerRaceCheckpoint(playerid);
  1699. SetPlayerRaceCheckpoint(playerid, 0, -2681.0728, 1613.7667, 1.2024, -2430.2171, 1501.0568, 1.0966, 10.0);
  1700. glob1331C[playerid] = 25;
  1701. }
  1702. else if(glob1331C[playerid] == 25)
  1703. {
  1704. DisablePlayerRaceCheckpoint(playerid);
  1705. SetPlayerRaceCheckpoint(playerid, 0, -2430.2171, 1501.0568, 1.0966, -2268.5137, 1592.637, 1.3517, 10.0);
  1706. glob1331C[playerid] = 26;
  1707. }
  1708. else if(glob1331C[playerid] == 26)
  1709. {
  1710. DisablePlayerRaceCheckpoint(playerid);
  1711. SetPlayerRaceCheckpoint(playerid, 0, -2268.5137, 1592.637, 1.3517, -2238.0486, 1884.7556, 1.2884, 10.0);
  1712. glob1331C[playerid] = 27;
  1713. }
  1714. else if(glob1331C[playerid] == 27)
  1715. {
  1716. DisablePlayerRaceCheckpoint(playerid);
  1717. SetPlayerRaceCheckpoint(playerid, 0, -2238.0486, 1884.7556, 1.2884, -2196.2024, 2142.8376, 1.4896, 10.0);
  1718. glob1331C[playerid] = 28;
  1719. }
  1720. else if(glob1331C[playerid] == 28)
  1721. {
  1722. DisablePlayerRaceCheckpoint(playerid);
  1723. SetPlayerRaceCheckpoint(playerid, 0, -2196.2024, 2142.8376, 1.4896, -2134.6194, 2416.913, -0.6019, 10.0);
  1724. glob1331C[playerid] = 29;
  1725. }
  1726. else if(glob1331C[playerid] == 29)
  1727. {
  1728. DisablePlayerRaceCheckpoint(playerid);
  1729. SetPlayerRaceCheckpoint(playerid, 1, -2134.6194, 2416.913, -0.6019, -2196.2024, 2142.8376, 1.4896, 10.0);
  1730. glob1331C[playerid] = 30;
  1731. }
  1732. else if(glob1331C[playerid] == 30)
  1733. {
  1734. InfoBoxText(playerid, "Uspesne jste slozil lodni skousky obdrzel jste lodni prukaz.");
  1735. glob14108[playerid] = 1;
  1736. DisablePlayerRaceCheckpoint(playerid);
  1737. glob1331C[playerid] = 0;
  1738. }
  1739.  
  1740.  
  1741.  
  1742. else if(glob1331C[playerid] == 61)
  1743. {
  1744. new string[150];
  1745. glob60DC[11] = 0;
  1746. GiveMoney(playerid, glob60DC[1] * glob60DC[4]);
  1747. format(string, sizeof(string), "Hráč %s vyhrál DRIFT závod ! Odměna je %d$.", Jmeno(playerid), glob60DC[1] * glob60DC[4]);
  1748. SendClientMessageToAll(0x00B700AA, string);
  1749. glob60DC[1] = 0;
  1750. for(new i = 0; i < MAX_PLAYERS; i++)
  1751. {
  1752. if(IsPlayerConnected(i))
  1753. {
  1754. if(glob10F88[i] == 1)
  1755. {
  1756. glob1331C[i] = 0;
  1757. glob10F88[i] = 0;
  1758. DisablePlayerRaceCheckpoint(i);
  1759. }}}}
  1760. }
  1761.  
  1762.  
  1763. return 1;
  1764. }
  1765.  
  1766. function VehicleDriver(vozidlo)
  1767. {
  1768. for(new i = 0; i < MAX_PLAYERS; i++)
  1769. {
  1770. if(IsPlayerConnected(i) && GetPlayerVehicleID(i) == vozidlo && GetPlayerState(i) == 6)
  1771. {
  1772. return i;
  1773. }
  1774. }
  1775. return -1;
  1776. }
  1777. public OnVehicleSpawn(vehicleid)
  1778. {
  1779.  
  1780. for(new i = 0; i < 10; i++)
  1781. {
  1782. if(vehicleid == glob10598[i])
  1783. {
  1784. SetTimerEx("TuningCar", 3000, false, "i", vehicleid);
  1785. }
  1786. }
  1787. return 1;
  1788. }
  1789.  
  1790.  
  1791.  
  1792. function TuningCar(vehicleid)
  1793. {
  1794. AddVehicleComponent(vehicleid, 1010);
  1795. return 0;
  1796. }
  1797.  
  1798. //------------------------------------------------------------------------------
  1799. CMD:win(playerid, params[])
  1800. {
  1801. if(glob12530[playerid] < 1)
  1802. {
  1803. return SendClientMessage(playerid, 0xEFEFF7AA, ""pc"[ ! ] "sc"Nemáte dostatečný AdminLevel !");
  1804. }
  1805. new id = strval(params),Castka,Castka2,duvod[128];
  1806. if(sscanf(params,"uis",id,Castka,Castka2,duvod)) return SendClientMessage(playerid, 0xEFEFF7AA, "{FF0000}[ ! ] {7700FF}Použití: /win [ ID ] [ Čáska $ ] [ Čáska b ] [ Důvod ]");
  1807. else if (id == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xEFEFF7AA, "{FF0000}[ ! ] {7700FF}Hráč není připojený");
  1808. new string[258];
  1809. format(string, 258, "{FF0000}Administrátor {FFFFFF}%s {FF0000}udělil výhru hráči {FFFFFF}%s. "pc"%s [Event: {FFFFFF}%s{FF0000} ]",Jmeno(playerid),Jmeno(id),Split(Vyhra),duvod);
  1810. SendClientMessageToAll(0xEFEFF7AA,string);
  1811. GiveMoney(id,Castka);
  1812. GivePlayerCredits(id,Castka2);
  1813. VyhraEventu[id]++;
  1814. return 1;
  1815. }
  1816. ////////////////////////////////////////////////////////////////////////////////
  1817. CMD:eprikazy(playerid, params[])
  1818. {
  1819. if(glob12530[playerid] < 1)
  1820. {
  1821. return SendClientMessage(playerid, 0xEFEFF7AA, ""pc"[ ! ] "sc"Nemáte dostatečný AdminLevel !");
  1822. }
  1823. if(BlockEPrikazy == 0)
  1824. {
  1825. new string[500];
  1826. format(string,sizeof(string),"%s {FFFFFF}%s{FF0000} zablokoval hráčům na Eventu všechny příkazy.",Spravce(playerid), Jmeno(playerid));
  1827. SendClientMessageToAll(0xFF0000FF,string);
  1828. BlockEPrikazy = 1;
  1829. }
  1830. else
  1831. {
  1832. new string[500];
  1833. format(string,sizeof(string),"%s {FFFFFF}%s{FF0000} odblokoval hráčům na Eventu všechny příkazy.",Spravce(playerid), Jmeno(playerid));
  1834. SendClientMessageToAll(0xFF0000FF,string);
  1835. BlockEPrikazy = 0;
  1836. }
  1837. return 1;
  1838. }
  1839. ////////////////////////////////////////////////////////////////////////////////
  1840. CMD:egw(playerid, params[])
  1841. {
  1842. if(IsPlayerConnected(playerid))
  1843. {
  1844. new string[500];
  1845. if(glob12530[playerid] < 1)
  1846. {
  1847. return SendClientMessage(playerid, 0xEFEFF7AA, ""pc"[ ! ] "sc"Nemáte dostatečný AdminLevel !");
  1848. }
  1849. new zbrann,ammo;
  1850. if(sscanf(params,"ii",zbrann,ammo)) return SendClientMessage(playerid, 0xEFEFF7AA, "{FF0000}[ AS ] "sc"Použití: /egw [ ZBRAŇ 1-46 ] [ NÁBOJE ]");
  1851. else if(zbrann > 46 || zbrann < 1 ) return SendClientMessage(playerid, 0xEFEFF7AA, "{FF0000}[ AS ] "sc"Použití: /egw [ 1-46 ] [ NÁBOJE ]");
  1852. format(string,sizeof(string),"%s "sc"%s{FF0000} poslal všem hráčům na Eventu zbraň ID "sc"%d{FF0000} s "sc"%d{FF0000} náboji.",Spravce(playerid), Jmeno(playerid), zbrann, ammo);
  1853. SendClientMessageToAll(0xFF0000FF,string);
  1854. for(new i; i < MAX_PLAYERS; i++)
  1855. {
  1856. if(IsPlayerConnected(i))
  1857. {
  1858. if(InEvent[i] == 1)
  1859. {
  1860. GivePlayerWeapon(i,zbrann,ammo);
  1861. }
  1862. }
  1863. }
  1864. }
  1865. return 1;
  1866. }
  1867. //--------------------------------------------------
  1868. CMD:eoprav(playerid, params[])
  1869. {
  1870. if(IsPlayerConnected(playerid))
  1871. {
  1872. new string[500];
  1873. if(glob12530[playerid] < 1)
  1874. {
  1875. return SendClientMessage(playerid, 0xEFEFF7AA, ""pc"[ ! ] "sc"Nemáte dostatečný AdminLevel !");
  1876. }
  1877. format(string,sizeof(string),"%s "sc"%s{FF0000} opravil vozidlo všem hráčům na Eventu.",Spravce(playerid), Jmeno(playerid));
  1878. SendClientMessageToAll(0xFF0000FF,string);
  1879. for(new i; i < MAX_PLAYERS; i++)
  1880. {
  1881. if(IsPlayerConnected(i))
  1882. {
  1883. if(InEvent[i] == 1)
  1884. {
  1885. new vid = GetPlayerVehicleID(i);
  1886. SetVehicleHealth(vid, 1000.0);
  1887. RepairVehicle(vid);
  1888. }
  1889. }
  1890. }
  1891. }
  1892. return 1;
  1893. }
  1894. ////////////////////////////////////////////////////////////////////////////////
  1895. CMD:eunfreeze(playerid, params[])
  1896. {
  1897. if(IsPlayerConnected(playerid))
  1898. {
  1899. new string[500];
  1900. if(glob12530[playerid] < 1)
  1901. {
  1902. return SendClientMessage(playerid, 0xEFEFF7AA, ""pc"[ ! ] "sc"Nemáte dostatečný AdminLevel !");
  1903. }
  1904. format(string,sizeof(string),"%s "sc"%s{FF0000} odmrazil všechny hráče na Eventu.",Spravce(playerid), Jmeno(playerid));
  1905. SendClientMessageToAll(0xFF0000FF,string);
  1906. for(new i; i < MAX_PLAYERS; i++)
  1907. {
  1908. if(IsPlayerConnected(i))
  1909. {
  1910. if(InEvent[i] == 1)
  1911. {
  1912. TogglePlayerControllable(i,1);
  1913. }
  1914. }
  1915. }
  1916. }
  1917. return 1;
  1918. }
  1919. ////////////////////////////////////////////////////////////////////////////////
  1920. CMD:ehp(playerid, params[])
  1921. {
  1922. if(IsPlayerConnected(playerid))
  1923. {
  1924. new string[500];
  1925. new heall = strval(params);
  1926. new armorr = strval(params);
  1927. if(glob12530[playerid] < 1)
  1928. {
  1929. return SendClientMessage(playerid, 0xEFEFF7AA, ""pc"[ ! ] "sc"Nemáte dostatečný AdminLevel !");
  1930. }
  1931. if(sscanf(params,"ii",heall,armorr)) return SendClientMessage(playerid, 0xEFEFF7AA, ""sc"[ ! ] {FF0000}Použití: "sc"/ehp [ HEALTH ] [ VESTA ]");
  1932. if(heall < 0 || heall > 100) return SendClientMessage(playerid, 0xEFEFF7AA, "{FF0000}[ ! ] "sc"Rozmezí HP je {FF0000}[ 0-100 ]{7700FF}.");
  1933. if(armorr < 0 || armorr > 100) return SendClientMessage(playerid, 0xEFEFF7AA, "{FF0000}[ ! ] {7700FF}Rozmezí Vesty je {FF0000}[ 0-100 ]{7700FF}.");
  1934. format(string,sizeof(string),"%s "sc"%s{FF0000} nastavil všem hráčům na eventu: "sc"[ Život: {FF0000}%d "sc"] [ Vesta: {FF0000}%d"sc" ]",Spravce(playerid), Jmeno(playerid),heall,armorr);
  1935. SendClientMessageToAll(0xFF0000FF,string);
  1936. for(new i; i < MAX_PLAYERS; i++)
  1937. {
  1938. if(IsPlayerConnected(i))
  1939. {
  1940. if(InEvent[i] == 1)
  1941. {
  1942. SetPlayerHealth(i, heall);
  1943. SetPlayerArmour(i, armorr);
  1944. }
  1945. }
  1946. }
  1947. }
  1948. return 1;
  1949. }
  1950. CMD:edisarm(playerid, params[])
  1951. {
  1952. if(IsPlayerConnected(playerid))
  1953. {
  1954. if(glob12530[playerid] < 1)
  1955. {
  1956. return SendClientMessage(playerid, 0xEFEFF7AA, ""pc"[ ! ] "sc"Nemáte dostatečný AdminLevel !");
  1957. }
  1958. new string[500];
  1959. format(string,sizeof(string),"%s "sc"%s{FF0000} odebral zbraně všem hráčům na Eventu.",Spravce(playerid), Jmeno(playerid));
  1960. SendClientMessageToAll(0xFF0000FF,string);
  1961. for(new i; i < MAX_PLAYERS; i++)
  1962. {
  1963. if(IsPlayerConnected(i))
  1964. {
  1965. if(InEvent[i] == 1)
  1966. {
  1967. ResetPlayerWeapons(i);
  1968. }
  1969. }
  1970. }
  1971. }
  1972. return 1;
  1973. }
  1974. //------------------------------------------------------------------------------
  1975. CMD:efreeze(playerid, params[])
  1976. {
  1977. if(IsPlayerConnected(playerid))
  1978. {
  1979. new string[500];
  1980. if(glob12530[playerid] < 1)
  1981. {
  1982. return SendClientMessage(playerid, 0xEFEFF7AA, ""pc"[ ! ] "sc"Nemáte dostatečný AdminLevel !");
  1983. }
  1984. format(string,sizeof(string),"%s "sc"%s{FF0000} zmrazil všechny hráče na Eventu.",Spravce(playerid), Jmeno(playerid));
  1985. SendClientMessageToAll(0xFF0000FF,string);
  1986. for(new i; i < MAX_PLAYERS; i++)
  1987. {
  1988. if(IsPlayerConnected(i))
  1989. {
  1990. if(InEvent[i] == 1)
  1991. {
  1992. TogglePlayerControllable(i,0);
  1993. }
  1994. }
  1995. }
  1996. }
  1997. return 1;
  1998. }
  1999. //------------------------------------------------------------------------------
  2000. CMD:eplayers(playerid, params[])
  2001. {
  2002. if(glob12530[playerid] < 1)
  2003. {
  2004. return SendClientMessage(playerid, 0xEFEFF7AA, ""pc"[ ! ] "sc"Nemáte dostatečný AdminLevel !");
  2005. }
  2006. new count = 0, string[800];
  2007. for(new i = 0; i < MAX_PLAYERS; i++)
  2008. {
  2009. if (IsPlayerConnected(i))
  2010. {
  2011. if (InEvent[i] > 0)
  2012. {
  2013. format(string, 500, "%s\t(ID: %d)\n", Jmeno(i), i);
  2014. count++;
  2015. }
  2016. }
  2017. }
  2018. if (count == 0) ShowPlayerDialog(playerid, 8895, DIALOG_STYLE_MSGBOX, "Hráči na Eventu", "{FF0000}Na Eventu není žádný hráč.", "Zavřít", "");
  2019. else ShowPlayerDialog(playerid, 8895, DIALOG_STYLE_LIST, "Hráči na Eventu", string, "Zavřít", "");
  2020. return 1;
  2021. }
  2022. //------------------------------------------------------------------------------
  2023. CMD:ekick(playerid, params[])
  2024. {
  2025. if(glob12530[playerid] < 1)
  2026. {
  2027. return SendClientMessage(playerid, 0xEFEFF7AA, ""pc"[ ! ] "sc"Nemáte dostatečný AdminLevel !");
  2028. }
  2029. new id = strval(params);
  2030. if(!strlen(params)) return SendClientMessage(playerid,0xFF0000FF,"[ AS ] {FFFFFF}Použití: /ekick [ ID ]");
  2031. else if (id == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xEFEFF7AA, "{FF0000}[ AS ] {FFFFFF}Hráč není připojený.");
  2032. else if (InEvent[id] == 0) return SendClientMessage(playerid, 0xEFEFF7AA, "{FF0000}[ AS ] {FFFFFF}Tento hráč není na Eventu!");
  2033. else
  2034. {
  2035. new kickstring[512];
  2036. format(kickstring,sizeof(kickstring),"{FF0000}Správce {FFFFFF}%s{FF0000} vykázal hráče {FFFFFF}%s{FF0000} z Eventu!",Jmeno(playerid),Jmeno(id));
  2037. SendClientMessageToAll(-1,kickstring);
  2038. InEvent[id] = 0;
  2039. EventFalloutPripojen[id] = false;
  2040. EventKopecPripojen[id] = false;
  2041. EventTuningPripojen[id] = false;
  2042. if(IsPlayerInAnyVehicle(id))
  2043. {
  2044. new autoo = GetPlayerVehicleID(id);
  2045. SetVehicleVirtualWorld(GetPlayerVehicleID(id), 0);
  2046. SetPlayerVirtualWorld(id, 0);
  2047. PutPlayerInVehicle(id, autoo, 0);
  2048. RepairVehicle(GetPlayerVehicleID(id));
  2049. }
  2050. else
  2051. {
  2052. SetPlayerVirtualWorld(id, 0);
  2053. }
  2054. }
  2055. return 1;
  2056. }
  2057.  
  2058. CMD:etd(playerid)
  2059. {
  2060. if(glob12530[playerid] < 1)
  2061. {
  2062. return SendClientMessage(playerid, 0xEFEFF7AA, ""pc"[ ! ] "sc"Nemáte dostatečný AdminLevel !");
  2063. }
  2064. for(new i = 0; i < MAX_PLAYERS; i++)
  2065. {
  2066. if(IsPlayerConnected(i))
  2067. {
  2068. TextDrawHideForPlayer(i, Textdraw9);
  2069. TextDrawHideForPlayer(i, Textdraw11);
  2070. TextDrawHideForPlayer(i, Textdraw12);
  2071. TextDrawHideForPlayer(i, Textdraw13);
  2072. TextDrawHideForPlayer(i, Textdraw7);
  2073. }
  2074. }
  2075. return 1;
  2076. }
  2077. //------------------------------------------------------------------------------
  2078. CMD:setevent(playerid, params[])
  2079. {
  2080. if(glob12530[playerid] < 1)
  2081. {
  2082. return SendClientMessage(playerid, 0xEFEFF7AA, ""pc"[ ! ] "sc"Nemáte dostatečný AdminLevel !");
  2083. }
  2084. ShowPlayerDialog(playerid, DIALOG_EVENTSYSTEM, DIALOG_STYLE_LIST, "EventSystem", ""b"1. "sc"Tuning Show\n"b"2. "sc"Kopec Smrti\n"b"3. "sc"Fallout\n"b"4. "sc"Derby\n"b"5. "sc"Deatmatch Event", "Vybrat", "Zavřít");
  2085. return 1;
  2086. }
  2087. CMD:leave(playerid)
  2088. {
  2089. if(IsPlayerInSumo[playerid] == 0 && InEvent[playerid] == 0 && IsPlayerInDuel[playerid] == 0) return SendClientMessage(playerid, -1,""pc"[ ! ] "sc"Nejsi na zádné akci!.");
  2090. //------------------------------------------------
  2091. if(IsPlayerInDuel[playerid] == 1)
  2092. {
  2093. DuelZbran[playerid] = 0;
  2094. IsPlayerInDuel[playerid] = 0;
  2095. NactiPoziceZbrane(playerid);
  2096. SetPlayerHealth(playerid, 100);
  2097. SCMTAF(0xFF0000AA,"{9966FF}%s {FFFFFF}%s {9966FF}opustil /duel. {FF0000}[ /leave ]",Spravce(playerid), Jmeno(playerid));
  2098. SetPlayerVirtualWorld(playerid,0);
  2099. Duel[Pocethracu] --;
  2100. Freeze(playerid,1);
  2101. new stringg[250];
  2102. format(stringg,sizeof(stringg),"%s",Jmeno(playerid));
  2103. DuelPorazen = stringg;
  2104. }
  2105. //-------------------------------------------------
  2106. if(IsPlayerInSumo[playerid] == 1)
  2107. {
  2108. SCMTAF(0xFF0000AA,"{FF8C00}%s {FFFFFF}%s {FF8C00}se odpojil ze /sumo. {FF0000}[ /leave ]",Spravce(playerid), Jmeno(playerid));
  2109. TogglePlayerControllable(playerid,1);
  2110. Sumo[Pocethracu] --;
  2111. SetPlayerVirtualWorld(playerid, 0);
  2112. IsPlayerInSumo[playerid] = 0;
  2113. NactiPoziceZbrane(playerid);
  2114. DestroyVehicle(SumoCar[playerid]);
  2115. DestroyVehicle(SumoCar2[playerid]);
  2116. new stringg[250];
  2117. format(stringg,sizeof(stringg),"%s",Jmeno(playerid));
  2118. SumoPorazen = stringg;
  2119. }
  2120. //-------------------------------------------------
  2121. if(InEvent[playerid] == 1)
  2122. {
  2123. new EString[500];
  2124. format(EString,sizeof(EString),"{00AAFF}%s {FFFF00}%s{00AAFF} opustil Event. {FF0000}[ /leave ]", Spravce(playerid),Jmeno(playerid));
  2125. SendClientMessageToAll(0x7700FFFF,EString);
  2126. InEvent[playerid] = 0;
  2127. HRACIEVENT[playerid]--;
  2128. TextDrawHideForPlayer(playerid,HRACINAEVENTU);
  2129. EventDerbyPripojen[playerid] = false;
  2130. EventTuningPripojen[playerid] = false;
  2131. EventKopecPripojen[playerid] = false;
  2132. EventFalloutPripojen[playerid] = false;
  2133. EventDMPripojen[playerid] = false;
  2134. NactiPoziceZbrane(playerid);
  2135. if(IsPlayerInAnyVehicle(playerid))
  2136. {
  2137. new autoo = GetPlayerVehicleID(playerid);
  2138. SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), 0);
  2139. SetPlayerVirtualWorld(playerid, 0);
  2140. PutPlayerInVehicle(playerid, autoo, 0);
  2141. RepairVehicle(GetPlayerVehicleID(playerid));
  2142. }
  2143. else
  2144. {
  2145. SetPlayerVirtualWorld(playerid, 0);
  2146. }
  2147. }
  2148. return 1;
  2149. }
  2150. CMD:konec(playerid,params[])
  2151. {
  2152.  
  2153. if(glob12530[playerid] < 1)
  2154. {
  2155. return SendClientMessage(playerid, 0xEFEFF7AA, ""pc"[ ! ] "sc"Nemáte dostatečný AdminLevel !");
  2156. }
  2157. cmd_etd(playerid);
  2158. if(TuningSraz == 0 && KopecSmrti == 0 && Fallout == 0 && DerbyEvent == 0 && DMevent == 0) return SendClientMessage(playerid,0xFF0000FF,"[ ! ] {FFFFFF}Žádný Event nebyl spustěn!");
  2159. else if(DMevent == 1)
  2160. {
  2161. for(new i=0; i<MAX_PLAYERS; i++)
  2162. {
  2163. Event[i] = 1;
  2164. EventPort_DM[i] = false;
  2165. SetPlayerVirtualWorld(i, 0);
  2166. InEvent[i] = 0;
  2167. }
  2168. SetPlayerVirtualWorld(playerid, 0);
  2169. new string[256];
  2170. format(string, sizeof(string), "{FF0000}%s {88FF00}%s{FF0000} ukončil {88FF00}DeathMatch{FF0000} !",Spravce(playerid), Jmeno(playerid));
  2171. SendClientMessageToAll(0xFF0000FF, string);
  2172. DerbyEvent = 0;
  2173. TextDrawHideForPlayer(playerid, HRACINAEVENTU);
  2174. DMevent = 0;
  2175. }
  2176. if(TuningSraz == 1)
  2177. {
  2178. for(new i=0; i<MAX_PLAYERS; i++)
  2179. {
  2180. Event[i] = 0;
  2181. EventPort_Tuning[i] = false;
  2182. SetPlayerVirtualWorld(i, 0);
  2183. InEvent[i] = 0;
  2184. }
  2185. TextDrawHideForAll(HRACINAEVENTU);
  2186. SetPlayerVirtualWorld(playerid, 0);
  2187. new string[256];
  2188. format(string, sizeof(string), ""pc"%s "sc"%s "pc"Ukončil event TuningSraz ",Spravce(playerid),Jmeno(playerid));
  2189. SendClientMessageToAll(0xFF0000FF, string);
  2190. }
  2191.  
  2192. //------------------------------------------------------------------
  2193. else if(DerbyEvent == 1)
  2194. {
  2195. //Ukončení Eventu
  2196. for(new i=0; i<MAX_PLAYERS; i++)
  2197. {
  2198. Event[i] = 0;
  2199. EventPort_Derby[i] = false;
  2200. SetPlayerVirtualWorld(i, 0);
  2201. DestroyVehicle(DerbyCar);
  2202. InEvent[i] = 0;
  2203. }
  2204. TextDrawHideForAll(HRACINAEVENTU);
  2205. SetPlayerVirtualWorld(playerid, 0);
  2206. new string[256];
  2207. format(string, sizeof(string), "{FF0000}%s {88FF00}%s{FF0000} ukončil {88FF00}Destruction Derby{FF0000} !", Spravce(playerid),Jmeno(playerid));
  2208. SendClientMessageToAll(0xFF0000FF, string);
  2209. DerbyEvent = 0;
  2210. }
  2211. //------------------------------------------------------------------
  2212. else if(KopecSmrti == 1)
  2213. {
  2214. for(new i=0; i<MAX_PLAYERS; i++)
  2215. {
  2216. Event[i] = 0;
  2217. EventPort_Kopec[i] = false;
  2218. SetPlayerVirtualWorld(i, 0);
  2219. InEvent[i] = 0;
  2220. }
  2221. TextDrawHideForAll(HRACINAEVENTU);
  2222. SetPlayerVirtualWorld(playerid, 0);
  2223. DestroyVehicle(EventCar[0]);
  2224. new string[256];
  2225. format(string, sizeof(string), ""pc"%s "sc"%s "pc"Ukončil Event KopecSmrti",Spravce(playerid),Jmeno(playerid));
  2226. SendClientMessageToAll(0xFF0000FF, string);
  2227. KopecSmrti = 0;
  2228. }
  2229. //--------------------------------------------------------------------
  2230. else if(Fallout == 1)
  2231. {
  2232. //Ukončení Eventu
  2233. for(new i=0; i<MAX_PLAYERS; i++)
  2234. {
  2235. Event[i] = 0;
  2236. EventPort_Fallout[i] = false;
  2237. SetPlayerVirtualWorld(i, 0);
  2238. InEvent[i] = 0;
  2239. }
  2240. TextDrawHideForAll(HRACINAEVENTU);
  2241. SetPlayerVirtualWorld(playerid, 0);
  2242. new string[256];
  2243. format(string, sizeof(string), ""pc"%s "sc"%s "pc"Ukončil Event {88FF00}Fallout{FF0000} !",Spravce(playerid),Jmeno(playerid));
  2244. SendClientMessageToAll(0xFF0000FF, string);
  2245. Fallout = 0;
  2246. NactiPoziceZbrane(playerid);
  2247. }
  2248. //--------------------------------------------------------------------
  2249. return 1;
  2250. }
  2251.  
  2252. CMD:port(playerid, params[])
  2253. {
  2254. new vehicleid = GetPlayerVehicleID(playerid);
  2255. if(Event[playerid] == 0) return SendClientMessage(playerid,-1,"{FF0000}[ Event ] {FFFFFF}Není spuštěný žádný Event !");
  2256. else
  2257. {
  2258. if(EventPort_DM[playerid] == true)
  2259. {
  2260. if(IsPlayerInAnyVehicle(playerid))
  2261. {
  2262. if(EventDMPripojen[playerid] == true) return SendClientMessage(playerid,-1,"{FF0000}[ Event ] {FFFFFF}Už jsi připojen na Eventu{FF0000} DeathMatch{FFFFFF} !");
  2263. RemovePlayerFromVehicle(playerid);
  2264. new EString[150];
  2265. format(EString, sizeof(EString), "~p~%s ~g~~h~~h~%s ~p~se portnul na Adminsky ~g~~h~~h~/Port", LevelChat(playerid), Jmeno(playerid));
  2266. AddStringToTextDraw(EString);
  2267. InEvent[playerid] = 1;
  2268. EventDMPripojen[playerid] = true;
  2269. SetPlayerHealth(playerid, 100);
  2270. SetPlayerArmour(playerid, 100);
  2271. ResetPlayerWeapons(playerid);
  2272. SetPlayerVirtualWorld(playerid, 25);
  2273. SetPlayerPos(playerid,221.8281,1877.8519,17.6406);
  2274. TogglePlayerControllable(playerid,1);
  2275. UlozPoziceZbrane(playerid);
  2276. HRACIEVENT[playerid]++;
  2277. TextDrawShowForPlayer(playerid,HRACINAEVENTU);
  2278. }
  2279. else
  2280. {
  2281. if(EventDMPripojen[playerid] == true) return SendClientMessage(playerid,-1,"{FF0000}[ Event ] {FFFFFF}Už jsi připojen na Eventu{FF0000} DeathMatch{FFFFFF} !");
  2282. new EString[150];
  2283. format(EString, sizeof(EString), "~p~%s ~g~~h~~h~%s ~p~se portnul na Adminsky ~g~~h~~h~/Port", LevelChat(playerid), Jmeno(playerid));
  2284. AddStringToTextDraw(EString);
  2285. InEvent[playerid] = 1;
  2286. EventDMPripojen[playerid] = true;
  2287. SetPlayerHealth(playerid, 100);
  2288. SetPlayerArmour(playerid, 100);
  2289. ResetPlayerWeapons(playerid);
  2290. SetPlayerVirtualWorld(playerid, 25);
  2291. SetPlayerPos(playerid,221.8281,1877.8519,17.6406);
  2292. TogglePlayerControllable(playerid,1);
  2293. UlozPoziceZbrane(playerid);
  2294. HRACIEVENT[playerid]++;
  2295. TextDrawShowForPlayer(playerid,HRACINAEVENTU);
  2296. }
  2297. }
  2298. //------------------------------------
  2299. if(EventPort_Derby[playerid] == true)
  2300. {
  2301. if(IsPlayerInAnyVehicle(playerid))
  2302. {
  2303. if(EventDerbyPripojen[playerid] == true) return SendClientMessage(playerid,-1,"{FF0000}[ Event ] {FFFFFF}Už jsi připojen na Eventu{FF0000} Derby{FFFFFF} !");
  2304. RemovePlayerFromVehicle(playerid);
  2305. new EString[150];
  2306. format(EString, sizeof(EString), "~p~%s ~g~~h~~h~%s ~p~se portnul na Adminsky ~g~~h~~h~/Port", LevelChat(playerid), Jmeno(playerid));
  2307. AddStringToTextDraw(EString);
  2308. InEvent[playerid] = 1;
  2309. EventDerbyPripojen[playerid] = true;
  2310. ResetPlayerWeapons(playerid);
  2311. SetPlayerVirtualWorld(playerid, 25);
  2312. SetPlayerPos(playerid,2390.2839,1134.5577,34.2529);
  2313. DerbyCar = CreateVehicle(495,0,0,0,0,226,211,0);
  2314. SetVehiclePos(DerbyCar, DerbyPos[PositionsDerby][0], DerbyPos[PositionsDerby][1], DerbyPos[PositionsDerby][2]);
  2315. SetVehicleVirtualWorld(DerbyCar, 25);
  2316. PutPlayerInVehicle(playerid,DerbyCar, 0);
  2317. SetVehicleHealth(DerbyCar, 990);
  2318. SetTimer("AntiDerbyHeal",1000,1);
  2319. TogglePlayerControllable(playerid,0);
  2320. SetPlayerHealth(playerid, 100);
  2321. PositionsDerby++;
  2322. UlozPoziceZbrane(playerid);
  2323. HRACIEVENT[playerid]++;
  2324. TextDrawShowForPlayer(playerid,HRACINAEVENTU);
  2325. }
  2326. if(PositionsDerby > 21) return SendClientMessage(playerid,-1,"{FF0000}[ Event ] Event {88FF00}Destruction Derby{FF0000} je {88FF00}Plný{FF0000} !");
  2327. else
  2328. {
  2329. if(EventDerbyPripojen[playerid] == true) return SendClientMessage(playerid,-1,"{FF0000}[ Event ] {FFFFFF}Už jsi připojen na Eventu{FF0000} Derby{FFFFFF} !");
  2330. new EString[150];
  2331. format(EString, sizeof(EString), "~p~%s ~g~~h~~h~%s ~p~se portnul na Adminsky ~g~~h~~h~/Port", LevelChat(playerid), Jmeno(playerid));
  2332. AddStringToTextDraw(EString);
  2333. InEvent[playerid] = 1;
  2334. EventDerbyPripojen[playerid] = true;
  2335. ResetPlayerWeapons(playerid);
  2336. SetPlayerVirtualWorld(playerid, 25);
  2337. SetPlayerPos(playerid,2390.2839,1134.5577,34.2529);
  2338. DerbyCar = CreateVehicle(495,0,0,0,0,226,211,0);
  2339. SetVehiclePos(DerbyCar, DerbyPos[PositionsDerby][0], DerbyPos[PositionsDerby][1],DerbyPos[PositionsDerby][2]);
  2340. SetVehicleVirtualWorld(DerbyCar, 25);
  2341. PutPlayerInVehicle(playerid,DerbyCar, 0);
  2342. SetVehicleHealth(DerbyCar, 990);
  2343. SetTimer("AntiDerbyHeal",1000,1);
  2344. TogglePlayerControllable(playerid,0);
  2345. SetPlayerHealth(playerid, 100);
  2346. PositionsDerby++;
  2347. //-------------------------
  2348. UlozPoziceZbrane(playerid);
  2349. HRACIEVENT[playerid]++;
  2350. TextDrawShowForPlayer(playerid,HRACINAEVENTU);
  2351. }
  2352. }
  2353. //------------------------------------------------------------------
  2354. if(EventPort_Kopec[playerid] == true)
  2355. {
  2356. if(IsPlayerInAnyVehicle(playerid))
  2357. {
  2358. if(EventKopecPripojen[playerid] == true) return SendClientMessage(playerid,-1,"{FF0000}[ Event ] {FFFFFF}Už jsi připojen na Eventu{FF0000} Kopec Smrti{FFFFFF} !");
  2359. RemovePlayerFromVehicle(playerid);
  2360. InEvent[playerid] = 1;
  2361. //---------------------------------------
  2362. new EString[150];
  2363. format(EString, sizeof(EString), "~p~%s ~g~~h~~h~%s ~p~se portnul na Adminsky ~g~~h~~h~/Port", LevelChat(playerid), Jmeno(playerid));
  2364. AddStringToTextDraw(EString);
  2365. //------------------------------------------
  2366. EventKopecPripojen[playerid] = true;
  2367. SetPlayerHealth(playerid, 100);
  2368. SetPlayerVirtualWorld(playerid, 25);
  2369. SetPlayerPos(playerid,-665.3537,2571.6326,152.4612);
  2370. TogglePlayerControllable(playerid,0);
  2371. ResetPlayerWeapons(playerid);
  2372. //
  2373. UlozPoziceZbrane(playerid);
  2374. HRACIEVENT[playerid]++;
  2375. TextDrawShowForPlayer(playerid,HRACINAEVENTU);
  2376. }
  2377. else
  2378. {
  2379. if(EventKopecPripojen[playerid] == true) return SendClientMessage(playerid,-1,"{FF0000}[ Event ] {FFFFFF}Už jsi připojen na Eventu{FF0000} Kopec Smrti{FFFFFF} !");
  2380. InEvent[playerid] = 1;
  2381. //---------------------------------------
  2382. new EString[150];
  2383. format(EString, sizeof(EString), "~p~%s ~g~~h~~h~%s ~p~se portnul na Adminsky ~g~~h~~h~/Port", LevelChat(playerid), Jmeno(playerid));
  2384. AddStringToTextDraw(EString);
  2385. //------------------------------------------
  2386. EventKopecPripojen[playerid] = true;
  2387. SetPlayerHealth(playerid, 100);
  2388. SetPlayerVirtualWorld(playerid, 25);
  2389. SetPlayerPos(playerid,-665.3537,2571.6326,152.4612);
  2390. TogglePlayerControllable(playerid,0);
  2391. ResetPlayerWeapons(playerid);
  2392. //
  2393. UlozPoziceZbrane(playerid);
  2394. HRACIEVENT[playerid]++;
  2395. TextDrawShowForPlayer(playerid,HRACINAEVENTU);
  2396. }
  2397. }
  2398. }
  2399. if(EventPort_Fallout[playerid] == true)
  2400. {
  2401. if(IsPlayerInAnyVehicle(playerid))
  2402. {
  2403. if(EventFalloutPripojen[playerid] == true) return SendClientMessage(playerid,-1,"{FF0000}[ Event ] {FFFFFF}Už jsi připojen na Eventu{FF0000} Fallout{FFFFFF} !");
  2404. RemovePlayerFromVehicle(playerid);
  2405. new EString[150];
  2406. format(EString, sizeof(EString), "~p~%s ~g~~h~~h~%s ~p~se portnul na Adminsky ~g~~h~~h~/Port", LevelChat(playerid), Jmeno(playerid));
  2407. AddStringToTextDraw(EString);
  2408. InEvent[playerid] = 1;
  2409. EventFalloutPripojen[playerid] = true;
  2410. SetPlayerHealth(playerid, 100);
  2411. SetPlayerVirtualWorld(playerid, 25);
  2412. SetPlayerPos(playerid, -1737.2623,841.4162,429.7961);
  2413. InFallout[playerid] = true;
  2414. HRACIEVENT[playerid]++;
  2415. //-------------------
  2416. UlozPoziceZbrane(playerid);
  2417. TextDrawShowForPlayer(playerid,HRACINAEVENTU);
  2418. ResetPlayerWeapons(playerid);
  2419. }
  2420. else
  2421. {
  2422. if(EventFalloutPripojen[playerid] == true) return SendClientMessage(playerid,-1,"{FF0000}[ Event ] {FFFFFF}Už jsi připojen na Eventu{FF0000} Fallout{FFFFFF} !");
  2423.  
  2424. new EString[150];
  2425. format(EString, sizeof(EString), "~p~%s ~g~~h~~h~%s ~p~se portnul na Adminsky ~g~~h~~h~/Port", LevelChat(playerid), Jmeno(playerid));
  2426. AddStringToTextDraw(EString);
  2427. InEvent[playerid] = 1;
  2428. EventFalloutPripojen[playerid] = true;
  2429. SetPlayerHealth(playerid, 100);
  2430. SetPlayerVirtualWorld(playerid, 25);
  2431. SetPlayerPos(playerid, -1737.2623,841.4162,429.7961);
  2432. InFallout[playerid] = true;
  2433. HRACIEVENT[playerid]++;
  2434. //-------------------
  2435. UlozPoziceZbrane(playerid);
  2436. TextDrawShowForPlayer(playerid,HRACINAEVENTU);
  2437. ResetPlayerWeapons(playerid);
  2438. }
  2439. }
  2440. //-------------------------------------------------------------------
  2441. if(EventPort_Tuning[playerid] == true)
  2442. {
  2443. if(IsPlayerInAnyVehicle(playerid))
  2444. {
  2445. if(EventTuningPripojen[playerid] == true) return SendClientMessage(playerid,-1,"{FF0000}[ Event ] {FFFFFF}Už jsi připojen na Eventu{FF0000} Tuning Sraz{FFFFFF} !");
  2446. InEvent[playerid] = 1;
  2447. EventTuningPripojen[playerid] = true;
  2448. SetPlayerHealth(playerid, 100);
  2449. //---------------------------------------
  2450. new EString[150];
  2451. format(EString, sizeof(EString), "~p~%s ~g~~h~~h~%s ~p~se portnul na Adminsky ~g~~h~~h~/Port", LevelChat(playerid), Jmeno(playerid));
  2452. AddStringToTextDraw(EString);
  2453. SetPlayerVirtualWorld(playerid, 25);
  2454. SetVehicleVirtualWorld(vehicleid, 25);
  2455. SetVehiclePos(vehicleid, -2625.0017,1370.0006,7.0809);
  2456. ResetPlayerWeapons(playerid);
  2457. //---------------------
  2458. UlozPoziceZbrane(playerid);
  2459. HRACIEVENT[playerid]++;
  2460. TextDrawShowForPlayer(playerid,HRACINAEVENTU);
  2461. }
  2462. else return SendClientMessage(playerid,-1,"{FF0000}[ Event ] Bez {88FF00}Vozidla{FF0000} nemůžeš na {88FF00}Tuning Show{FF0000} !");
  2463. }
  2464. return 1;
  2465. }
  2466.  
  2467. CMD:sumo(playerid)
  2468. {
  2469. if(IsPlayerConnected(playerid))
  2470. {
  2471. if(Sumo[Started] != 0) return SendClientMessage(playerid,0xFFFFFFFF,"{7700FF}[ ! ] {88FF00}Sumo již probíhá,vyčkejte..!");
  2472. else if(IsPlayerInSumo[playerid] != 0) return SendClientMessage(playerid,0xFFFFFFFF,"{7700FF}[ ! ] {88FF00}Již jste v Sumo!");
  2473. else
  2474. {
  2475. Sumo[Pocethracu] ++ ;
  2476. IsPlayerInSumo[playerid] = 1;
  2477. ResetPlayerWeapons(playerid);
  2478. KillTimer(Sumo[TimerUpdate]);
  2479. Sumo[TimerUpdate] = SetTimer("SumoTimerUpdate",1000,1);
  2480. Sumo[Counter] = 4;
  2481. SetPlayerHealth(playerid,100);
  2482. SetPlayerArmour(playerid,0);
  2483. SetPlayerInterior(playerid,0);
  2484. if(Sumo[Pocethracu] == 1)
  2485. {
  2486. UlozPoziceZbrane(playerid);
  2487. SumoCar[playerid] = AddStaticVehicle(495, 1815.3793,-1548.9509,39.3049,83.5187, 226, 211);
  2488. SetVehicleVirtualWorld(SumoCar[playerid], 10);
  2489. SetPlayerVirtualWorld(playerid, 10);
  2490. PutPlayerInVehicle(playerid, SumoCar[playerid], 0);
  2491. TogglePlayerControllable(playerid,0);
  2492. SCMTAF(0xFF0000AA,"{FF8C00}%s {FFFFFF}%s {FF8C00}založil {FFFFFF}/sumo {FF8C00}zápas!",LevelChat(playerid),Jmeno(playerid));
  2493. SendClientMessage(playerid,-1,"{FF8C00}Pro odchod použi příkaz {FF0000}/leave{FF8C00}.");
  2494. }
  2495. else if(Sumo[Pocethracu] == 2)
  2496. {
  2497. UlozPoziceZbrane(playerid);
  2498. SCMTAF(0xFF0000AA,"{FF8C00}%s {FFFFFF}%s {FF8C00}se připojil do {FFFFFF}/sumo {FF8C00}!",LevelChat(playerid),Jmeno(playerid));
  2499. SumoCar2[playerid] = AddStaticVehicle(495, 1776.5165,-1545.4232,39.3107,264.8841, 211, 226);
  2500. SetVehicleVirtualWorld(SumoCar2[playerid], 10);
  2501. SetPlayerVirtualWorld(playerid, 10);
  2502. PutPlayerInVehicle(playerid, SumoCar2[playerid], 0);
  2503. TogglePlayerControllable(playerid,0);
  2504. Sumo[Started] = 1;
  2505. Sumo[TimerStart] = SetTimer("SumoTimerStart",1000,0);
  2506. }
  2507. }
  2508. }
  2509. return 1;
  2510. }
  2511.  
  2512.  
  2513. CMD:vyhra(playerid, params[])
  2514. {
  2515. new id = strval(params),Castka,duvod[300];
  2516. if(glob12530[playerid] < 2) return SendClientMessage(playerid, 0xEFEFF7AA, "[ ! ] Nemate dostatecny Admin-Level.");
  2517. if(strlen(duvod) > 60) return SendClientMessage(playerid,0xEFEFF7AA, "[ ! ] Zadal jste do textu příliš dlouhý text !");
  2518. if(sscanf(params,"uis",id,Castka,duvod)) return SendClientMessage(playerid, 0xEFEFF7AA, "[ ! ] Pouziti: /vyhra [ ID ] [ ČÁSTKA ] [ DŮVOD ]");
  2519. else if(!IsPlayerConnected(id)) return SendClientMessage(playerid, 0xEFEFF7AA, "[ ! ] Hráč není připojený");
  2520. new string[300];
  2521. format(string, sizeof(string), "%s %s udělil výhru hráči %s. Důvod: %s",Spravce(playerid), Jmeno(playerid),Jmeno(id),duvod);
  2522. SendClientMessageToAll(0xCA0000AA,string);
  2523. format(string,sizeof(string), "~r~Vyhra~n~~w~ %s $", Split(Castka));
  2524. GameTextForPlayer(id, string, 10000, 4);
  2525. //GiveMoney(id,Castka);
  2526. Banka[playerid] = Castka + Banka[playerid];
  2527. return 1;
  2528. }
  2529.  
  2530.  
  2531.  
  2532.  
  2533. //============================================================================//
  2534. CMD:setadmin(playerid,params[])
  2535. {
  2536. new id,lvl,str[500];
  2537. if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, ""pc"[ ! ] "sc"Nejsi příhlášení na RCON !");
  2538. if(sscanf(params,"ii",id,lvl)) return SendClientMessage(playerid,-1,"Použití: "r"/setadmin [ ID ] [ Admin Level ]");
  2539. if(!IsPlayerConnected(id)) return SendClientMessage(playerid,-1, "Hráč není připojený");
  2540. if(lvl < 0 || lvl > 5) return SendClientMessage(playerid,-1,"Rozmezí levelů je "g"0 - 5");
  2541. if(lvl == 0 && glob12530[id] == 0) return SendClientMessage(playerid,-1,"Tento hráč nemá Admin Level. Nemůžete mu ho odebrat");
  2542. if(id == playerid)
  2543. {
  2544. format(str, sizeof(str), ""r"Nastavil jste si Admin Level "sc"%d", lvl);
  2545. SendClientMessage(playerid,-1, str);
  2546. glob12530[id] = lvl;
  2547. udb_UserSetInt(Jmeno(playerid), "adminlvl", glob12530[playerid]);
  2548. }
  2549. else
  2550. {
  2551. if(lvl == 0)
  2552. {
  2553. glob12530[id] = 0;
  2554. format(str,sizeof(str),"Správce "w"%s "r"odebral hráči "w"%s "r"Admin Práva.",Jmeno(playerid),Jmeno(id));
  2555. SendClientMessageToAll(red,str);
  2556. udb_UserSetInt(Jmeno(id), "adminlvl", glob12530[id]);
  2557. }
  2558. else if(lvl > 0)
  2559. {
  2560. glob12530[id] = lvl;
  2561. format(str,sizeof(str),"Správce "w"%s "r"nastavil hráči "w"%s "r"Admin Práva.",Jmeno(playerid),Jmeno(id));
  2562. SendClientMessageToAll(red,str);
  2563. udb_UserSetInt(Jmeno(id), "adminlvl", glob12530[id]);
  2564. }
  2565. }
  2566. udb_UserSetInt(Jmeno(id), "adminlvl", glob12530[id]);
  2567. return 1;
  2568. }
  2569.  
  2570.  
  2571.  
  2572. //==========================================================================
  2573. stock Spravce(playerid)
  2574. {
  2575. new NazevChat[1000];
  2576. if(glob12530[playerid] > 0)
  2577. {
  2578. if(glob12530[playerid] == 1) NazevChat = "Moderátor";
  2579. else if(glob12530[playerid] == 2) NazevChat = "Moderátor";
  2580. else if(glob12530[playerid] == 3) NazevChat = "Administrátor";
  2581. else if(glob12530[playerid] == 4) NazevChat = "HL.Administrátor";
  2582. else if(glob12530[playerid] == 5) NazevChat = "Majitel";
  2583. }
  2584. if(glob12530[playerid] == 0)
  2585. {
  2586. if(vip[playerid] == 0) NazevChat = "Hráč";
  2587. else if(vip[playerid] == 1) NazevChat = "VIP Hráč";
  2588. }
  2589. return NazevChat;
  2590. }
  2591.  
  2592. stock LevelChat(playerid)
  2593. {
  2594. new NazevChat[1000];
  2595. if(glob12530[playerid] > 0)
  2596. {
  2597. if(glob12530[playerid] == 1) NazevChat = "Moderator";
  2598. else if(glob12530[playerid] == 2) NazevChat = "Moderator";
  2599. else if(glob12530[playerid] == 3) NazevChat = "Administrator";
  2600. else if(glob12530[playerid] == 4) NazevChat = "HL.Administrator";
  2601. else if(glob12530[playerid] == 5) NazevChat = "Majitel";
  2602. }
  2603. if(glob12530[playerid] == 0)
  2604. {
  2605. if(vip[playerid] == 0) NazevChat = "Hrac";
  2606. else if(vip[playerid] == 1) NazevChat = "VIP Hrac";
  2607. }
  2608. return NazevChat;
  2609. }
  2610.  
  2611.  
  2612.  
  2613.  
  2614.  
  2615. forward Odpocet();
  2616.  
  2617. public Odpocet()
  2618. {
  2619. new str[256];
  2620. OdpocetTime--;
  2621. TimerOdpocet = SetTimer("Odpocet",1000,false);
  2622. format(str,sizeof(str),"~w~~h~%d",OdpocetTime);
  2623. GameTextForAll(str,1000,3);
  2624. if(OdpocetTime == 0)
  2625. {
  2626. format(str,sizeof(str),"~b~~h~Start ~w~~h~!!!",OdpocetTime);
  2627. GameTextForAll(str,1000,3);
  2628. KillTimer(TimerOdpocet);
  2629. }
  2630. return 1;
  2631. }
  2632.  
  2633.  
  2634.  
  2635.  
  2636.  
  2637.  
  2638. stock chrfind(needle, haystack[], start = 0)
  2639. {
  2640. while(haystack[start]) if(haystack[start++] == needle) return start - 1;
  2641. return -1;
  2642. }
  2643. //==========================================================================
  2644. stock AddStringToTextDraw(textchat[150])
  2645. {
  2646. text_chat6 = text_chat5;
  2647. TextDrawSetString(TextDrawChat[5], text_chat6);
  2648. text_chat5 = text_chat4;
  2649. TextDrawSetString(TextDrawChat[4], text_chat5);
  2650. text_chat4 = text_chat3;
  2651. TextDrawSetString(TextDrawChat[3], text_chat4);
  2652. text_chat3 = text_chat2;
  2653. TextDrawSetString(TextDrawChat[2], text_chat3);
  2654. text_chat2 = text_chat1;
  2655. TextDrawSetString(TextDrawChat[1], text_chat2);
  2656. text_chat1 = textchat;
  2657. TextDrawSetString(TextDrawChat[0], text_chat1);
  2658. }
  2659. stock ISNUM(const string[])
  2660. {
  2661.  
  2662. if(string[0] == '-' || string[0] == '+') return false;
  2663. new length = strlen(string);
  2664. if(length == 0) return false;
  2665. for(new i; i < length; i++)
  2666. {
  2667. if((string[i] > '9' || string[i] < '0' && string[i] != '-' && string[i] != '+')|| (string[i] == '-' && i != 0)|| (string[i] == '+' && i != 0)) return false;
  2668. }
  2669. if(length == 1 && (string[0] == '-' || string[0] == '+')) return false;
  2670. return true;
  2671. }
  2672.  
  2673.  
  2674.  
  2675. stock RandomEx(min, max)
  2676. {
  2677. new randr = random(max-min)+min;
  2678. return randr;
  2679. }
  2680.  
  2681. forward Admin(playerid);
  2682. public Admin(playerid)
  2683. {
  2684. return glob12530[playerid];
  2685. }
  2686.  
  2687. forward Hodiny(playerid);
  2688. public Hodiny(playerid)
  2689. {
  2690. return Hodin[playerid];
  2691. }
  2692. //============================================================================//
  2693. stock SecondsToMinutes(seconds)
  2694. {
  2695. new text[10];
  2696. format(text,sizeof(text),"%02d:%02d",seconds/60,seconds%60);
  2697. return text;
  2698. }
  2699. forward OnlinePanel(playerid);
  2700. public OnlinePanel(playerid)
  2701. {
  2702. new hraci; hraci = 0;
  2703. new admini; admini = 0;
  2704. new vhraci; vhraci = 0;
  2705. new vevent; vevent = 0;
  2706.  
  2707. for(new i=0;i<MAX_PLAYERS;i++)
  2708. {
  2709. if(IsPlayerConnected(i))
  2710. {
  2711. hraci++;
  2712. }
  2713. if(IsPlayerConnected(i) && glob12530[i])
  2714. {
  2715. admini++;
  2716. }
  2717. if(IsPlayerConnected(i) && vip[i])
  2718. {
  2719. vhraci++;
  2720. }
  2721. if(IsPlayerConnected(i) && HRACIEVENT[i])
  2722. {
  2723. vevent++;
  2724. }
  2725. if(OpravaCas[i] > 0)
  2726. {
  2727. new STR1[150];
  2728. format(STR1,sizeof(STR1),"~p~/oprava: ~g~~h~0~g~~h~0~g~~h~:~g~~h~%02d",OpravaCas[i]);
  2729. TextDrawSetString(OPRAVATD[i], STR1);
  2730. TextDrawShowForPlayer(i,OPRAVATD[i]);
  2731. OpravaCas[i] --;
  2732. }
  2733. if(OpravaCas[i] == 0)
  2734. {
  2735. new STR2[150];
  2736. format(STR2,sizeof(STR2),"~p~/oprava: ~g~~h~0~g~~h~0~g~~h~:~g~~h~01");
  2737. TextDrawSetString(OPRAVATD[i], STR2);
  2738. SetTimerEx("OpravaTDHide",1000,false,"i",i);
  2739. }
  2740. }
  2741. new honline[100]; format(honline,100,"~g~ON-LINE ~w~HRACI: %d",hraci);
  2742. TextDrawSetString(ponline, honline);
  2743.  
  2744. new adminio[100]; format(adminio,100,"~g~ON-LINE ~y~ADMINISTRATORI: ~w~%d",admini);
  2745. TextDrawSetString(aonline, adminio);
  2746.  
  2747. new vhracio[100]; format(vhracio,100,"~g~PREMIUM ~r~HRACI: ~w~%d",vhraci);
  2748. TextDrawSetString(phonline, vhracio);
  2749. //
  2750. new vhracioo[100]; format(vhracioo,100,"~b~Hraci Event: ~y~%d",vevent);
  2751. TextDrawSetString(HRACINAEVENTU, vhracioo);
  2752.  
  2753. return 1;
  2754. }
  2755.  
  2756. //------------------------------------------------------------------------------
  2757. public count3()
  2758. {
  2759. for(new i; i < MAX_PLAYERS; i++)
  2760. {
  2761. if(IsPlayerConnected(i))
  2762. {
  2763. if(InEvent[i] == 1)
  2764. {
  2765. GameTextForPlayer(i,"~y~3",1000,3);
  2766. GetPlayerPos(i,EventhX,EventhY,EventhZ);
  2767. PlayerPlaySound(i,1056,EventhX,EventhY,EventhZ);
  2768. }
  2769. }
  2770. }
  2771. }
  2772.  
  2773. //------------------------------------------------------------------------------
  2774. public count2()
  2775. {
  2776. for(new i; i < MAX_PLAYERS; i++)
  2777. {
  2778. if(IsPlayerConnected(i))
  2779. {
  2780. if(InEvent[i] == 1)
  2781. {
  2782. GameTextForPlayer(i,"~y~2",1000,3);
  2783. GetPlayerPos(i,EventhX,EventhY,EventhZ);
  2784. PlayerPlaySound(i,1056,EventhX,EventhY,EventhZ);
  2785. }
  2786. }
  2787. }
  2788. }
  2789. //------------------------------------------------------------------------------
  2790. public count1()
  2791. {
  2792. for(new i; i < MAX_PLAYERS; i++)
  2793. {
  2794. if(IsPlayerConnected(i))
  2795. {
  2796. if(InEvent[i] == 1)
  2797. {
  2798. GameTextForPlayer(i,"~y~1",1000,3);
  2799. GetPlayerPos(i,EventhX,EventhY,EventhZ);
  2800. PlayerPlaySound(i,1056,EventhX,EventhY,EventhZ);
  2801. }
  2802. }
  2803. }
  2804. }
  2805. //------------------------------------------------------------------------------
  2806. public go()
  2807. {
  2808. for(new i; i < MAX_PLAYERS; i++)
  2809. {
  2810. if(IsPlayerConnected(i))
  2811. {
  2812. if(InEvent[i] == 1)
  2813. {
  2814. GetPlayerPos(i,EventhX,EventY,EventZ);
  2815. GameTextForPlayer(i,"~b~] ~r~START ~b~]",1000,3);
  2816. PlayerPlaySound(i,1057,EventhX,EventhY,EventhZ);
  2817. TogglePlayerControllable(i,1);
  2818. }
  2819. }
  2820. }
  2821. }
  2822. //------------------------------------------------------------------------------
  2823. public stop()
  2824. {
  2825. for(new i; i < MAX_PLAYERS; i++)
  2826. {
  2827. if(IsPlayerConnected(i))
  2828. {
  2829. if(InEvent[i] == 1)
  2830. {
  2831. GameTextForPlayer(i,"_",1000,3);
  2832. }
  2833. }
  2834. }
  2835. }
  2836. //------------------------------------------------------------------------------
  2837. forward FalloutBlub();
  2838. public FalloutBlub()
  2839. {
  2840.  
  2841. new i = random(6);
  2842. if(i == 1)
  2843. SetObjectRot(FallOutObject[NextFalloutObject], -100.00000, 0.00000, -90.60000);
  2844. if(i == 2)
  2845. SetObjectRot(FallOutObject[NextFalloutObject], -90.00000, 0.00000, -90.60000);
  2846. if(i == 3)
  2847. SetObjectRot(FallOutObject[NextFalloutObject], -75.00000, 0.00000, -90.60000);
  2848. if(i == 4)
  2849. SetObjectRot(FallOutObject[NextFalloutObject], -95.00000, 0.00000, -90.60000);
  2850. else
  2851. SetObjectRot(FallOutObject[NextFalloutObject], -80.00000, 0.00000, -90.60000);
  2852. }
  2853. //-------------------------------------------------------------------------------
  2854. forward DestroyOne();
  2855. public DestroyOne()
  2856. {
  2857. if(FalloutTimeZ > 0)
  2858. {
  2859. FalloutTimeZ--;
  2860. if(FalloutTimeZ == 7 || FalloutTimeZ == 5)
  2861. {
  2862. if(!IsValidObject(FallOutObject[NextFalloutObject]))
  2863. NextFalloutObject = random(30);
  2864. }
  2865. if(FalloutTimeZ == 6 || FalloutTimeZ == 4)
  2866. {
  2867. if(!IsValidObject(FallOutObject[NextFalloutObject]))
  2868. NextFalloutObject = random(30);
  2869. }
  2870. if(FalloutTimeZ == 3)
  2871. {
  2872. Blub = SetTimer("FalloutBlub", 250, true);
  2873. }
  2874. if(FalloutTimeZ == 1)
  2875. {
  2876. KillTimer(Blub);
  2877. if(IsValidObject(FallOutObject[NextFalloutObject]))
  2878. DestroyObject(FallOutObject[NextFalloutObject]);
  2879. FalloutTimeZ = 7;
  2880. }}}
  2881.  
  2882. forward FalloutCheck();
  2883. public FalloutCheck()
  2884. {
  2885. new Float:x, Float:y, Float:z;
  2886.  
  2887. for(new i = 0; i < MAX_PLAYERS; i++)
  2888. {
  2889. if(IsPlayerConnected(i))
  2890. {
  2891. if (EventFalloutPripojen[i])
  2892. {
  2893. if (GetPlayerVirtualWorld(i) == 25)
  2894. {
  2895. GetPlayerPos(i, x, y, z);
  2896.  
  2897. if (z < 420.00)
  2898. {
  2899. HRACIEVENT[i]--;
  2900. SpawnPlayer(i);
  2901. EventFalloutPripojen[i] = false;
  2902. InFallout[i] = false;
  2903. new eliminated[100];
  2904. format(eliminated, sizeof(eliminated), "{00AAFF}%s {FFFF00}%s{00AAFF} opustil Event Fallout. {FF0000}[ Vypadl ]", Spravce(i),Jmeno(i));
  2905. SendClientMessageToAll(0xFFFFFFFF, eliminated);
  2906.  
  2907.  
  2908. }}}}}}
  2909.  
  2910. stock createGlass()
  2911. {
  2912. FallOutObject[0] = CreateObject(1649, -1740.44092, 845.66888, 428.79611, -90.00000, 0.00000, -90.60000);
  2913. FallOutObject[1] = CreateObject(1649, -1737.18042, 845.63318, 428.79611, -90.00000, 0.00000, -90.60000);
  2914. FallOutObject[2] = CreateObject(1649, -1740.48816, 841.32959, 428.79611, -90.00000, 0.00000, -90.60000);
  2915. FallOutObject[3] = CreateObject(1649, -1737.22803, 841.29327, 428.79611, -90.00000, 0.00000, -90.60000);
  2916. FallOutObject[4] = CreateObject(1649, -1743.76868, 841.38629, 428.79611, -90.00000, 0.00000, -90.60000);
  2917. FallOutObject[5] = CreateObject(1649, -1743.70081, 845.68628, 428.79611, -90.00000, 0.00000, -90.60000);
  2918. FallOutObject[6] = CreateObject(1649, -1743.67358, 850.00671, 428.79611, -90.00000, 0.00000, -90.60000);
  2919. FallOutObject[7] = CreateObject(1649, -1740.37341, 849.96948, 428.79611, -90.00000, 0.00000, -90.60000);
  2920. FallOutObject[8] = CreateObject(1649, -1737.11243, 849.93317, 428.79611, -90.00000, 0.00000, -90.60000);
  2921. FallOutObject[9] = CreateObject(1649, -1733.85181, 849.89679, 428.79611, -90.00000, 0.00000, -90.60000);
  2922. FallOutObject[10] = CreateObject(1649, -1733.93787, 845.51715, 428.79611, -90.00000, 0.00000, -90.60000);
  2923. FallOutObject[11] = CreateObject(1649, -1733.96399, 841.24866, 428.79611, -90.00000, 0.00000, -90.60000);
  2924. FallOutObject[12] = CreateObject(1649, -1730.74585, 841.14685, 428.79611, -90.00000, 0.00000, -90.60000);
  2925. FallOutObject[13] = CreateObject(1649, -1730.63953, 845.54553, 428.79611, -90.00000, 0.00000, -90.60000);
  2926. FallOutObject[14] = CreateObject(1649, -1730.59717, 849.84680, 428.79611, -90.00000, 0.00000, -90.60000);
  2927. FallOutObject[15] = CreateObject(1649, -1743.81250, 837.06433, 428.79611, -90.00000, 0.00000, -90.60000);
  2928. FallOutObject[16] = CreateObject(1649, -1740.53174, 837.00037, 428.79611, -90.00000, 0.00000, -90.60000);
  2929. FallOutObject[17] = CreateObject(1649, -1737.23096, 836.97479, 428.79611, -90.00000, 0.00000, -90.60000);
  2930. FallOutObject[18] = CreateObject(1649, -1734.09045, 836.91614, 428.79611, -90.00000, 0.00000, -90.60000);
  2931. FallOutObject[19] = CreateObject(1649, -1730.79199, 836.81165, 428.79611, -90.00000, 0.00000, -90.60000);
  2932. FallOutObject[20] = CreateObject(1649, -1747.12341, 837.09131, 428.79611, -90.00000, 0.00000, -90.60000);
  2933. FallOutObject[21] = CreateObject(1649, -1747.06689, 841.43445, 428.79611, -90.00000, 0.00000, -90.60000);
  2934. FallOutObject[22] = CreateObject(1649, -1747.01526, 845.75745, 428.79611, -90.00000, 0.00000, -90.60000);
  2935. FallOutObject[23] = CreateObject(1649, -1746.95740, 849.99884, 428.79611, -90.00000, 0.00000, -90.60000);
  2936. FallOutObject[24] = CreateObject(1649, -1730.82996, 832.48993, 428.79611, -90.00000, 0.00000, -90.60000);
  2937. FallOutObject[25] = CreateObject(1649, -1734.09753, 832.52924, 428.79611, -90.00000, 0.00000, -90.60000);
  2938. FallOutObject[26] = CreateObject(1649, -1737.34229, 832.58447, 428.79611, -90.00000, 0.00000, -90.60000);
  2939. FallOutObject[27] = CreateObject(1649, -1740.63342, 832.60742, 428.79611, -90.00000, 0.00000, -90.60000);
  2940. FallOutObject[28] = CreateObject(1649, -1743.83813, 832.65540, 428.79611, -90.00000, 0.00000, -90.60000);
  2941. FallOutObject[29] = CreateObject(1649, -1747.13342, 832.65881, 428.79611, -90.00000, 0.00000, -90.60000);
  2942. }
  2943.  
  2944. stock destroyGlass()
  2945. {
  2946. for(new i = 0; i < 30; i++)
  2947. {
  2948. if(IsValidObject(FallOutObject[NextFalloutObject])) DestroyObject(FallOutObject[NextFalloutObject]);
  2949. }
  2950. KillTimer(FalloutTimer);
  2951. KillTimer(FalloutDestroyTimer);
  2952. DestroyObject(FallOutObject[0]);
  2953. DestroyObject(FallOutObject[1]);
  2954. DestroyObject(FallOutObject[2]);
  2955. DestroyObject(FallOutObject[3]);
  2956. DestroyObject(FallOutObject[4]);
  2957. DestroyObject(FallOutObject[5]);
  2958. DestroyObject(FallOutObject[6]);
  2959. DestroyObject(FallOutObject[7]);
  2960. DestroyObject(FallOutObject[8]);
  2961. DestroyObject(FallOutObject[9]);
  2962. DestroyObject(FallOutObject[10]);
  2963. DestroyObject(FallOutObject[11]);
  2964. DestroyObject(FallOutObject[12]);
  2965. DestroyObject(FallOutObject[13]);
  2966. DestroyObject(FallOutObject[14]);
  2967. DestroyObject(FallOutObject[15]);
  2968. DestroyObject(FallOutObject[16]);
  2969. DestroyObject(FallOutObject[17]);
  2970. DestroyObject(FallOutObject[18]);
  2971. DestroyObject(FallOutObject[19]);
  2972. DestroyObject(FallOutObject[20]);
  2973. DestroyObject(FallOutObject[21]);
  2974. DestroyObject(FallOutObject[22]);
  2975. DestroyObject(FallOutObject[23]);
  2976. DestroyObject(FallOutObject[24]);
  2977. DestroyObject(FallOutObject[25]);
  2978. DestroyObject(FallOutObject[26]);
  2979. DestroyObject(FallOutObject[27]);
  2980. DestroyObject(FallOutObject[28]);
  2981. DestroyObject(FallOutObject[29]);
  2982. }
  2983. forward Hodinyx(playerid);
  2984. public Hodinyx(playerid)
  2985. {
  2986. return Hodin[playerid];
  2987. }
  2988.  
  2989.  
  2990. forward AntiDerbyHeal(vehicleid, playerid);
  2991. public AntiDerbyHeal(vehicleid, playerid)
  2992. {
  2993. new Float:DamageHealth;
  2994. GetPlayerVehicleID(playerid);
  2995. {
  2996. if(Event[playerid] == 1)
  2997. {
  2998. if(EventDerbyPripojen[playerid] == true)
  2999. {
  3000. if(GetVehicleHealth(495, DamageHealth))
  3001. {
  3002. if(DamageHealth <= 991)
  3003. {
  3004. new EString[500];
  3005. format(EString,sizeof(EString),"{00AAFF}%s "sc"%s{00AAFF} byl vykázán z {FFFF00}Derby{00AAFF}! {FF0000}[ Oprava Vozidla ]", LevelChat(playerid),Jmeno(playerid));
  3006. SendClientMessageToAll(0x7700FFFF,EString);
  3007. SetPlayerHealth(playerid, 0);
  3008. SetPlayerVirtualWorld(playerid, 0);
  3009. InEvent[playerid] = 0;
  3010. HRACIEVENT[playerid]--;
  3011. NactiPoziceZbrane(playerid);
  3012. TextDrawHideForPlayer(playerid,HRACINAEVENTU);
  3013. }
  3014. }
  3015. }
  3016. }
  3017. }
  3018. return 1;
  3019. }
  3020.  
  3021. //------------------------------------------------------------------------------
  3022.  
  3023.  
  3024. stock DeatmatchTextdraw(playerid)
  3025. {
  3026. new string3[150],string4[150];
  3027. //---------------------------------------------
  3028. format(string3, sizeof(string3), "~y~Nazev: ~h~~r~Deatmatch");
  3029. TextDrawSetString(Textdraw11, string3);
  3030. format(string4, sizeof(string4), "~y~Misto: ~h~~r~/port");
  3031. TextDrawSetString(Textdraw9, string4);
  3032. format(string4, sizeof(string4), "~y~Odmena: ~h~~r~500.000~g~$ +~y~25 ~r~BODU");
  3033. TextDrawSetString(Textdraw12, string4);
  3034. format(string4, sizeof(string4), "~y~Deatmatch ~w~na >~r~/port ~w~<");
  3035. TextDrawSetString(zann, string4);
  3036. //------------------------------------------------------------
  3037. TextDrawShowForPlayer(playerid, Textdraw11);
  3038. TextDrawShowForPlayer(playerid, Textdraw9);
  3039. TextDrawShowForPlayer(playerid, Textdraw12);
  3040. TextDrawShowForPlayer(playerid, Textdraw7);
  3041. TextDrawShowForPlayer(playerid, zann);
  3042. return 1;
  3043. }
  3044. stock KopecTextdraw(playerid)
  3045. {
  3046. new string3[150],string4[150];
  3047. //---------------------------------------------
  3048. format(string3, sizeof(string3), "~y~Nazev: ~h~~r~KopecSmrti");
  3049. TextDrawSetString(Textdraw11, string3);
  3050. format(string4, sizeof(string4), "~y~Misto: ~h~~r~/port");
  3051. TextDrawSetString(Textdraw9, string4);
  3052. format(string4, sizeof(string4), "~y~Odmena: ~h~~r~500.000~g~$ +~y~25 ~r~BODU");
  3053. TextDrawSetString(Textdraw12, string4);
  3054. format(string4, sizeof(string4), "~y~Kopec smrti ~w~na >~r~/port ~w~<");
  3055. TextDrawSetString(zann, string4);
  3056. //------------------------------------------------------------
  3057. TextDrawShowForPlayer(playerid, Textdraw11);
  3058. TextDrawShowForPlayer(playerid, Textdraw9);
  3059. TextDrawShowForPlayer(playerid, Textdraw12);
  3060. TextDrawShowForPlayer(playerid, Textdraw7);
  3061. TextDrawShowForPlayer(playerid, zann);
  3062. return 1;
  3063. }
  3064. stock FalloutTextdraw(playerid)
  3065. {
  3066. new string3[150],string4[150];
  3067. //---------------------------------------------
  3068. format(string3, sizeof(string3), "~y~Nazev: ~h~~r~Fallout");
  3069. TextDrawSetString(Textdraw11, string3);
  3070. format(string4, sizeof(string4), "~y~Misto: ~h~~r~/port");
  3071. TextDrawSetString(Textdraw9, string4);
  3072. format(string4, sizeof(string4), "~y~Odmena: ~h~~r~500.000~g~$ +~y~25 ~r~BODU");
  3073. TextDrawSetString(Textdraw12, string4);
  3074. format(string4, sizeof(string4), "~y~Fallout ~w~na >~r~/port ~w~<");
  3075. TextDrawSetString(zann, string4);
  3076. //------------------------------------------------------------
  3077. TextDrawShowForPlayer(playerid, Textdraw11);
  3078. TextDrawShowForPlayer(playerid, Textdraw9);
  3079. TextDrawShowForPlayer(playerid, Textdraw12);
  3080. TextDrawShowForPlayer(playerid, Textdraw7);
  3081. TextDrawShowForPlayer(playerid, zann);
  3082. return 1;
  3083. }
  3084. stock TuningTextdraw(playerid)
  3085. {
  3086. new string3[150],string4[150];
  3087. //---------------------------------------------
  3088. format(string3, sizeof(string3), "~y~Nazev: ~h~~r~TuningSraz");
  3089. TextDrawSetString(Textdraw11, string3);
  3090. format(string4, sizeof(string4), "~y~Misto: ~h~~r~/port");
  3091. TextDrawSetString(Textdraw9, string4);
  3092. format(string4, sizeof(string4), "~y~Odmena: ~h~~r~500.000~g~$ +~y~25 ~r~BODU");
  3093. TextDrawSetString(Textdraw12, string4);
  3094. format(string4, sizeof(string4), "~y~TuningSraz ~w~na >~r~/port ~w~<");
  3095. TextDrawSetString(zann, string4);
  3096. //------------------------------------------------------------
  3097. TextDrawShowForPlayer(playerid, Textdraw11);
  3098. TextDrawShowForPlayer(playerid, Textdraw9);
  3099. TextDrawShowForPlayer(playerid, Textdraw12);
  3100. TextDrawShowForPlayer(playerid, Textdraw7);
  3101. TextDrawShowForPlayer(playerid, zann);
  3102. return 1;
  3103. }
  3104. stock DerbyTextdraw(playerid)
  3105. {
  3106. new string3[150],string4[150];
  3107. //---------------------------------------------
  3108. format(string3, sizeof(string3), "~y~Nazev: ~h~~r~Derby");
  3109. TextDrawSetString(Textdraw11, string3);
  3110. format(string4, sizeof(string4), "~y~Misto: ~h~~r~/port");
  3111. TextDrawSetString(Textdraw9, string4);
  3112. format(string4, sizeof(string4), "~y~Odmena: ~h~~r~500.000~g~$ +~y~25 ~r~BODU");
  3113. TextDrawSetString(Textdraw12, string4);
  3114. format(string4, sizeof(string4), "~y~Derby ~w~na >~r~/port ~w~<");
  3115. TextDrawSetString(zann, string4);
  3116. //------------------------------------------------------------
  3117. TextDrawShowForPlayer(playerid, Textdraw11);
  3118. TextDrawShowForPlayer(playerid, Textdraw9);
  3119. TextDrawShowForPlayer(playerid, Textdraw12);
  3120. TextDrawShowForPlayer(playerid, Textdraw7);
  3121. TextDrawShowForPlayer(playerid, zann);
  3122. return 1;
  3123. }
  3124. //------------------------------------------------------------------------------
  3125.  
  3126.  
  3127. stock Datum(timestamp)
  3128. {
  3129. new year=1970, day=0, month=0, hour=0, mins=0;
  3130. new days_of_month[12] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
  3131. new returnstring[32];
  3132. if(timestamp == 0)
  3133. {
  3134. format(returnstring, sizeof(returnstring), "%s", "{FF0000}Permanentí");
  3135. return returnstring;
  3136. }
  3137. while(timestamp > 31622400)
  3138. {
  3139. timestamp -= 31536000;
  3140. if(((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0) ) timestamp -= 86400;
  3141. year++;
  3142. }
  3143. if(((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)) days_of_month[1] = 29;
  3144. else days_of_month[1] = 28;
  3145. while(timestamp > 86400)
  3146. {
  3147. timestamp -= 86400, day++;
  3148. if(day == days_of_month[month]) day=0, month++;
  3149. }
  3150. while(timestamp > 60)
  3151. {
  3152. timestamp -= 60, mins++;
  3153. if(mins == 60) mins=0, hour++;
  3154. }
  3155. format(returnstring, 31, "%02d.%02d.%d %02d:%02d", day+1, month+1, year, hour, mins);
  3156. return returnstring;
  3157. }
  3158.  
  3159.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement