SHARE
TWEET

Untitled

a guest Mar 6th, 2015 16 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <a_samp>
  2. #include <kolory>
  3. #include <zcmd>
  4. #include <sscanf2>
  5. #include <dini>
  6.  
  7. main() {}
  8. #define DIALOGLOGIN 1
  9. #define DIALOGREGISTER 2
  10. #define DIALOGPLEC 3
  11. #define DIALOGPOMOC 4
  12. #define BIZNES 5
  13. #define NAZWASERWERA "City-RP"
  14. #define KASAGRACZASTART 100
  15. #define PUNKTYGRACZASTART 1
  16. #define CZASRUCHOMEJKAMERY 15000
  17. #define KOLOR_OOC 0xE2E2E2FF
  18. #define KOLOR_IC 0xFFFFC6FF
  19. #define KOLOR_SAPD 0x297CB399
  20. #define KOLOR_ESU 0x5594E699
  21. #define KOLOR_PW  0xF2C633FF
  22. #define KOLOR_PW2 0xD9AA11FF
  23. #define KOLOR_NIEWIDZIALNY 0xFFFFFF00
  24. #define KOLOR_BIALY 0xFFFFFFFF
  25. #define KOLOR_CZARNY 0x000000FF
  26. #define KOLOR_ZOLTY 0xFFFF00FF
  27. #define KOLOR_POMARANCZOWY 0xFF8040FF
  28. #define KOLOR_CZERWONY 0xFF2F2FFF
  29. #define KOLOR_ROZOWY 0xFF80FFFF
  30. #define KOLOR_NIEBIESKI 0x2B95FFFF
  31. #define KOLOR_BRAZOWY 0x9D4F4FFF
  32. #define KOLOR_ZIELONY 0x80FF00FF
  33. #define KOLOR_JZIELONY 0xB7FF6FFF
  34. #define KOLOR_TURKUSOWY 0x00FFFFFF
  35. #define KOLOR_SZARY 0xC0C0C0FF
  36. #define KOLOR_FIOLETOWY 0x800040FF
  37. #define KOLOR_BEZOWY 0xFFFFA6FF
  38. #define KOLOR_BORDOWY 0x800000FF
  39. #define KOLOR_PBIALY 0xFFFFFF99
  40.  
  41. //rangi
  42. //1 = Admin
  43. //2 = HeadAdmin
  44.  
  45.  
  46.  
  47.  
  48. //Definicje Gracza
  49.  
  50. enum DaneGracza
  51. {
  52.         bool:Zalogowany,
  53.         Nick[MAX_PLAYERS],
  54.         RangaAdmina,
  55.         cammovcount,
  56.         Plec
  57. }
  58. new gGracz[MAX_PLAYERS][DaneGracza];
  59. new EKIPA;
  60. new kara;
  61. new Komisariat;
  62. new Komisariat2;
  63. new Urzad;
  64. new Urzad2;
  65. new Victium;
  66. new Victium2;
  67. new Szpital;
  68.  
  69. //Zmienne
  70. new CameraMoverTimer[MAX_PLAYERS];
  71.  
  72. //===================================================|Kod Mapy|========================================//
  73. public OnGameModeInit()
  74. {
  75.         DisableInteriorEnterExits();
  76.         SetGameModeText("Serwer RP");
  77.         //Mezczyzni
  78.         AddPlayerClass(7,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  79.         AddPlayerClass(14,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  80.         AddPlayerClass(15,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  81.         AddPlayerClass(16,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  82.         AddPlayerClass(17,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  83.         AddPlayerClass(18,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  84.         AddPlayerClass(19,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  85.         AddPlayerClass(20,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  86.         AddPlayerClass(21,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  87.         AddPlayerClass(22,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  88.         AddPlayerClass(23,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  89.         AddPlayerClass(24,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  90.         AddPlayerClass(25,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  91.         AddPlayerClass(26,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  92.         AddPlayerClass(27,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  93.         AddPlayerClass(28,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  94.         AddPlayerClass(29,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  95.         AddPlayerClass(30,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  96.         AddPlayerClass(32,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  97.         AddPlayerClass(33,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  98.         AddPlayerClass(34,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  99.         AddPlayerClass(35,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  100.         AddPlayerClass(36,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  101.         AddPlayerClass(37,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  102.         AddPlayerClass(42,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  103.         AddPlayerClass(43,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  104.         AddPlayerClass(44,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  105.         AddPlayerClass(45,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  106.         AddPlayerClass(46,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  107.         AddPlayerClass(47,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  108.         AddPlayerClass(48,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  109.         AddPlayerClass(49,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  110.         AddPlayerClass(51,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  111.         AddPlayerClass(52,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  112.         AddPlayerClass(57,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  113.         AddPlayerClass(58,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  114.         AddPlayerClass(59,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  115.         AddPlayerClass(60,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  116.         AddPlayerClass(61,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  117.         AddPlayerClass(62,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  118.         AddPlayerClass(66,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  119.         AddPlayerClass(67,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  120.         AddPlayerClass(68,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  121.         AddPlayerClass(72,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  122.         AddPlayerClass(73,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  123.         AddPlayerClass(78,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  124.         AddPlayerClass(79,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  125.         AddPlayerClass(80,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  126.         AddPlayerClass(81,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  127.         AddPlayerClass(82,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  128.         AddPlayerClass(83,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  129.         AddPlayerClass(84,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  130.         AddPlayerClass(94,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  131.         AddPlayerClass(95,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  132.         AddPlayerClass(96,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  133.         AddPlayerClass(97,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  134.         AddPlayerClass(98,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  135.         AddPlayerClass(99,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  136.         AddPlayerClass(100,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  137.         AddPlayerClass(101,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  138.         AddPlayerClass(128,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  139.         AddPlayerClass(132,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  140.         AddPlayerClass(133,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  141.         AddPlayerClass(134,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  142.         AddPlayerClass(135,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  143.         AddPlayerClass(136,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  144.         AddPlayerClass(137,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  145.         AddPlayerClass(142,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  146.         AddPlayerClass(143,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  147.         AddPlayerClass(144,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  148.         AddPlayerClass(146,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  149.         AddPlayerClass(147,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  150.         AddPlayerClass(153,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  151.         AddPlayerClass(154,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  152.         AddPlayerClass(155,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  153.         AddPlayerClass(156,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  154.         AddPlayerClass(158,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  155.         AddPlayerClass(159,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  156.         AddPlayerClass(160,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  157.         AddPlayerClass(161,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  158.         AddPlayerClass(162,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  159.         AddPlayerClass(167,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  160.         AddPlayerClass(168,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  161.         AddPlayerClass(170,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  162.         AddPlayerClass(171,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  163.         AddPlayerClass(176,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  164.         AddPlayerClass(177,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  165.         AddPlayerClass(179,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  166.         AddPlayerClass(180,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  167.         AddPlayerClass(181,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  168.         AddPlayerClass(182,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  169.         AddPlayerClass(183,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  170.         AddPlayerClass(184,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  171.         AddPlayerClass(185,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  172.         AddPlayerClass(186,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  173.         AddPlayerClass(187,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  174.         AddPlayerClass(188,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  175.         AddPlayerClass(189,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  176.         AddPlayerClass(200,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  177.         AddPlayerClass(202,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  178.         AddPlayerClass(204,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  179.         AddPlayerClass(206,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  180.         AddPlayerClass(208,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  181.         AddPlayerClass(209,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  182.         AddPlayerClass(210,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  183.         AddPlayerClass(212,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  184.         AddPlayerClass(213,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  185.         AddPlayerClass(217,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  186.         AddPlayerClass(220,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  187.         AddPlayerClass(221,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  188.         AddPlayerClass(222,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  189.         AddPlayerClass(223,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  190.         AddPlayerClass(227,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  191.         AddPlayerClass(228,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  192.         AddPlayerClass(229,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  193.         AddPlayerClass(230,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  194.         AddPlayerClass(234,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  195.         AddPlayerClass(235,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  196.         AddPlayerClass(236,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  197.         AddPlayerClass(239,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  198.         AddPlayerClass(240,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  199.         AddPlayerClass(241,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  200.         AddPlayerClass(242,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  201.         AddPlayerClass(247,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  202.         AddPlayerClass(248,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  203.         AddPlayerClass(249,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  204.         AddPlayerClass(250,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  205.         AddPlayerClass(252,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  206.         AddPlayerClass(253,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  207.         AddPlayerClass(254,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  208.         AddPlayerClass(255,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  209.         AddPlayerClass(258,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  210.         AddPlayerClass(259,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  211.         AddPlayerClass(260,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  212.         AddPlayerClass(261,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  213.         AddPlayerClass(262,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  214.         AddPlayerClass(264,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  215.        
  216.         //Kobiety
  217.        
  218.         AddPlayerClass(9,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  219.         AddPlayerClass(10,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  220.         AddPlayerClass(11,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  221.         AddPlayerClass(12,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  222.         AddPlayerClass(13,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  223.         AddPlayerClass(31,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  224.         AddPlayerClass(38,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  225.         AddPlayerClass(39,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  226.         AddPlayerClass(40,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  227.         AddPlayerClass(41,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  228.         AddPlayerClass(53,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  229.         AddPlayerClass(54,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  230.         AddPlayerClass(55,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  231.         AddPlayerClass(56,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  232.         AddPlayerClass(63,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  233.         AddPlayerClass(64,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  234.         AddPlayerClass(65,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  235.         AddPlayerClass(69,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  236.         AddPlayerClass(75,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  237.         AddPlayerClass(76,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  238.         AddPlayerClass(77,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  239.         AddPlayerClass(85,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  240.         AddPlayerClass(87,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  241.         AddPlayerClass(88,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  242.         AddPlayerClass(89,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  243.         AddPlayerClass(90,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  244.         AddPlayerClass(91,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  245.         AddPlayerClass(92,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  246.         AddPlayerClass(93,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  247.         AddPlayerClass(129,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  248.         AddPlayerClass(130,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  249.         AddPlayerClass(131,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  250.         AddPlayerClass(138,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  251.         AddPlayerClass(139,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  252.         AddPlayerClass(140,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  253.         AddPlayerClass(141,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  254.         AddPlayerClass(145,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  255.         AddPlayerClass(148,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  256.         AddPlayerClass(150,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  257.         AddPlayerClass(151,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  258.         AddPlayerClass(152,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  259.         AddPlayerClass(157,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  260.         AddPlayerClass(169,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  261.         AddPlayerClass(172,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  262.         AddPlayerClass(178,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  263.         AddPlayerClass(190,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  264.         AddPlayerClass(191,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  265.         AddPlayerClass(192,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  266.         AddPlayerClass(193,829.7375,-1341.9724,10.8757,74.4520,0,0,0,0,0,0);
  267.         //Picupy
  268.         Komisariat = CreatePickup(1247, 1, 1555.5059,-1675.7051,16.1953, -1); //Komisariat
  269.         Komisariat2 = CreatePickup(1247, 1, 246.6690,62.3239,1003.6406, -1); //Komisariat
  270.         Urzad = CreatePickup(1318, 1, 1310.1687,-1366.7969,13.5065, -1); //Urzad
  271.         Urzad2 = CreatePickup(1318, 1, 390.7688,173.8361,1008.3828, -1); //Urzad
  272.         Victium = CreatePickup(1275, 1, 987.8470,-1349.2249,13.5773, -1); //Victium
  273.         Victium2 = CreatePickup(1275, 1, 227.5609,-8.0993,1002.2109, -1); //Victium
  274.         Szpital = CreatePickup(1240, 1, 1172.0822,-1323.3619,15.4030, -1); //Szpital
  275.        
  276.         return 1;
  277. }
  278.  
  279. public OnGameModeExit()
  280. {
  281.         return 1;
  282. }
  283.  
  284. public OnPlayerRequestClass(playerid, classid)
  285. {
  286.         SetPlayerPos(playerid, -685.4662,932.8564,13.6328);
  287.         SetPlayerFacingAngle(playerid, 201.9041);
  288.         SetPlayerCameraPos(playerid, -684.7850,931.0605,13.6293);
  289.         SetPlayerCameraLookAt(playerid, -685.4662,932.8564,13.6328);
  290.         return 1;
  291. }
  292.  
  293. public OnPlayerConnect(playerid)
  294. {
  295.         new string[500];
  296.         new Gname[MAX_PLAYER_NAME];
  297.         GetPlayerName(playerid, gGracz[playerid][Nick], MAX_PLAYER_NAME);
  298.         GetPlayerName(playerid, Gname, sizeof(Gname));
  299.         format(string, sizeof(string), "/Gracze/%s.ini",Gname);
  300.         if(dini_Exists(string))
  301.         {
  302.                 format(string, sizeof(string), "{FFFFFF}Witaj {FF0000}%s {FFFFFF}na naszym Serwerze !\nTwoje Konto zostalo pomyslnie znalezione !\nWpisz swoje Haslo aby sie zalogowac !",Gname);
  303.                 ShowPlayerDialog(playerid, DIALOGLOGIN, DIALOG_STYLE_PASSWORD,NAZWASERWERA,string,"Loguj","Wyjdz");
  304.         }
  305.         else
  306.         {
  307.                 format(string, sizeof(string), "{FFFFFF}Witaj {FF0000}%s {FFFFFF}na naszym Serwerze !\nTwoje Konto nie zostalo znalezione !\nAby grac na naszym serwerze, musisz stworzyc Konto !",Gname);
  308.                 ShowPlayerDialog(playerid, DIALOGREGISTER, DIALOG_STYLE_PASSWORD,NAZWASERWERA,string,"Zarejestruj","Wyjdz");
  309.         }
  310.        
  311.         return 1;
  312. }
  313.  
  314. public OnPlayerDisconnect(playerid, reason)
  315. {
  316.         if(gGracz[playerid][Zalogowany] == true)
  317.         {
  318.                 ZapiszGracza(playerid);
  319.                 KillTimer(CameraMoverTimer[playerid]);
  320.         }
  321.         return 1;
  322. }
  323.  
  324. public OnPlayerSpawn(playerid)
  325. {
  326.         new Ranga = gGracz[playerid][RangaAdmina];
  327.         if(Ranga == 0)
  328.         {
  329.                 SendClientMessage(playerid,COLOR_WHITE,"Witaj na serwerze jestes Graczem");
  330.                 return 1;
  331.         }
  332.         if(Ranga == 1)
  333.         {
  334.                 SendClientMessage(playerid,COLOR_GREEN,"Witaj na serwerze jestes Adminem");
  335.                 return 1;
  336.         }
  337.         if(Ranga == 2)
  338.         {
  339.                 SendClientMessage(playerid,COLOR_RED,"Witaj na serwerze jestes HeadAdminem");
  340.                 return 1;
  341.         }
  342.        
  343.         return 1;
  344. }
  345.  
  346. public OnPlayerDeath(playerid, killerid, reason)
  347. {
  348.         return 1;
  349. }
  350.  
  351. public OnVehicleSpawn(vehicleid)
  352. {
  353.         return 1;
  354. }
  355.  
  356. public OnVehicleDeath(vehicleid, killerid)
  357. {
  358.         return 1;
  359. }
  360.  
  361. public OnPlayerText(playerid, text[])
  362. {
  363.         return 1;
  364. }
  365.  
  366. public OnPlayerCommandText(playerid, cmdtext[])
  367. {
  368.         return 1;
  369. }
  370.  
  371. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  372. {
  373.         return 1;
  374. }
  375.  
  376. public OnPlayerExitVehicle(playerid, vehicleid)
  377. {
  378.         return 1;
  379. }
  380.  
  381. public OnPlayerStateChange(playerid, newstate, oldstate)
  382. {
  383.         return 1;
  384. }
  385.  
  386. public OnPlayerEnterCheckpoint(playerid)
  387. {
  388.         return 1;
  389. }
  390.  
  391. public OnPlayerLeaveCheckpoint(playerid)
  392. {
  393.         return 1;
  394. }
  395.  
  396. public OnPlayerEnterRaceCheckpoint(playerid)
  397. {
  398.         return 1;
  399. }
  400.  
  401. public OnPlayerLeaveRaceCheckpoint(playerid)
  402. {
  403.         return 1;
  404. }
  405.  
  406. public OnRconCommand(cmd[])
  407. {
  408.         return 1;
  409. }
  410.  
  411. public OnPlayerRequestSpawn(playerid)
  412. {
  413.         return 1;
  414. }
  415.  
  416. public OnObjectMoved(objectid)
  417. {
  418.         return 1;
  419. }
  420.  
  421. public OnPlayerObjectMoved(playerid, objectid)
  422. {
  423.         return 1;
  424. }
  425.  
  426. public OnPlayerPickUpPickup(playerid, pickupid)
  427. {
  428.         if(pickupid == Komisariat)
  429.         {
  430.                 SetPlayerInterior(playerid, 6);
  431.                 SetPlayerPos(playerid, 246.8432,64.6173,1003.6406);
  432.                 SetPlayerFacingAngle(playerid, 1.2090);
  433.         }
  434.         if(pickupid == Komisariat2)
  435.         {
  436.                 SetPlayerInterior(playerid, 0);
  437.                 SetPlayerPos(playerid, 1552.8063,-1675.4221,16.1953);
  438.                 SetPlayerFacingAngle(playerid, 92.0764);
  439.         }
  440.         if(pickupid == Urzad)
  441.         {
  442.                 SetPlayerInterior(playerid, 3);
  443.                 SetPlayerPos(playerid, 384.808624,173.804992,1008.382812);
  444.                 SetPlayerFacingAngle(playerid, 90.7182);
  445.         }
  446.         if(pickupid == Urzad2)
  447.         {
  448.                 SetPlayerInterior(playerid, 0);
  449.                 SetPlayerPos(playerid, 1309.8336,-1369.0841,13.5572);
  450.                 SetPlayerFacingAngle(playerid, 181.3541);
  451.         }
  452.         if(pickupid == Victium)
  453.         {
  454.                 SetPlayerInterior(playerid, 5);
  455.                 SetPlayerPos(playerid, 226.293991,-7.431529,1002.210937);
  456.         }
  457.         if(pickupid == Victium2)
  458.         {
  459.                 SetPlayerInterior(playerid, 0);
  460.                 SetPlayerPos(playerid, 989.3743,-1349.3160,13.3775);
  461.                 SetPlayerFacingAngle(playerid, 272.4585);
  462.         }
  463.         if(pickupid == Szpital)
  464.         {
  465.                 SetPlayerInterior(playerid, 2);
  466.                 SetPlayerPos(playerid, 2543.462646,-1308.379882,1026.728393);
  467.         }
  468.         return 1;
  469. }
  470.  
  471. public OnVehicleMod(playerid, vehicleid, componentid)
  472. {
  473.         return 1;
  474. }
  475.  
  476. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  477. {
  478.         return 1;
  479. }
  480.  
  481. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  482. {
  483.         return 1;
  484. }
  485.  
  486. public OnPlayerSelectedMenuRow(playerid, row)
  487. {
  488.         return 1;
  489. }
  490.  
  491. public OnPlayerExitedMenu(playerid)
  492. {
  493.         return 1;
  494. }
  495.  
  496. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  497. {
  498.         return 1;
  499. }
  500.  
  501. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  502. {
  503.         return 1;
  504. }
  505.  
  506. public OnRconLoginAttempt(ip[], password[], success)
  507. {
  508.         return 1;
  509. }
  510.  
  511. public OnPlayerUpdate(playerid)
  512. {
  513.         return 1;
  514. }
  515.  
  516. public OnPlayerStreamIn(playerid, forplayerid)
  517. {
  518.         return 1;
  519. }
  520.  
  521. public OnPlayerStreamOut(playerid, forplayerid)
  522. {
  523.         return 1;
  524. }
  525.  
  526. public OnVehicleStreamIn(vehicleid, forplayerid)
  527. {
  528.         return 1;
  529. }
  530.  
  531. public OnVehicleStreamOut(vehicleid, forplayerid)
  532. {
  533.         return 1;
  534. }
  535.  
  536. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  537. {
  538.         if(dialogid == DIALOGPLEC)
  539.         {
  540.                 if(response)
  541.                 {
  542.                         if(listitem == 0) //Mezczyzna
  543.                         {
  544.                                 gGracz[playerid][Plec] = 1;
  545.                                 SendClientMessage(playerid, COLOR_CYAN, "{FFFFFF}Wybrales/as plec {FF0000}Mezczyzna {FFFFFF} !");
  546.                                 ZapiszGracza(playerid);
  547.                         }
  548.                         if(listitem == 1) //Kobieta
  549.                         {
  550.                                 gGracz[playerid][Plec] = 2;
  551.                                 SendClientMessage(playerid, COLOR_CYAN, "{FFFFFF}Wybrales/as plec {FF0000}Kobieta {FFFFFF} !");
  552.                                 ZapiszGracza(playerid);
  553.                         }
  554.                        
  555.                         if(gGracz[playerid][Plec] == 0)
  556.                         {
  557.                                 ShowPlayerDialog(playerid, DIALOGPLEC, DIALOG_STYLE_LIST,"Wybierz swoja Plec","Mezczyzna\nKobieta","Wybierz",#);
  558.                                 return 1;
  559.                         }
  560.                 }
  561.         }
  562.        
  563.         if(dialogid == DIALOGREGISTER)
  564.         {
  565.                 if(response)
  566.                 {
  567.                         if(strlen(inputtext))
  568.                         {
  569.                                 if(strlen(inputtext) >= 5)
  570.                                 {
  571.                                         Register(playerid, inputtext);
  572.                                         new string[500];
  573.                                         new Gname[MAX_PLAYER_NAME];
  574.                                         GetPlayerName(playerid, Gname, sizeof(Gname));
  575.                                         format(string, sizeof(string), "/Gracze/%s.ini",Gname);
  576.                                         if(dini_Exists(string))
  577.                                         {
  578.                                                 ShowPlayerDialog(playerid, DIALOGPLEC, DIALOG_STYLE_LIST,NAZWASERWERA,"Mężczyzna\nKobieta","Wybierz","");
  579.                                         }
  580.                                 }
  581.                                 else
  582.                                 {
  583.                                         new string[500];
  584.                                         new Gname[MAX_PLAYER_NAME];
  585.                                         GetPlayerName(playerid, Gname, sizeof(Gname));
  586.                                         format(string, sizeof(string), "{FF0000}Twoje Haslo musi zawierac minimum 5 Znakow !\n{FFFFFF}Witaj {FF0000}%s {FFFFFF}na naszym Serwerze !\nTwoje Konto nie zostalo znalezione !\nAby grac na naszym serwerze, musisz stworzyc Konto !",Gname);
  587.                                         ShowPlayerDialog(playerid, DIALOGREGISTER, DIALOG_STYLE_PASSWORD,NAZWASERWERA,string,"Zarejestruj","Wyjdz");
  588.                                 }
  589.                         }
  590.                         else
  591.                         {
  592.                                 new string[500];
  593.                                 new Gname[MAX_PLAYER_NAME];
  594.                                 GetPlayerName(playerid, Gname, sizeof(Gname));
  595.                                 format(string, sizeof(string), "{FF0000}Nic nie wpisales/as\n{FFFFFF}Witaj {FF0000}%s {FFFFFF}na naszym Serwerze !\nTwoje Konto nie zostalo znalezione !\nAby grac na naszym serwerze, musisz stworzyc Konto !",Gname);
  596.                                 ShowPlayerDialog(playerid, DIALOGREGISTER, DIALOG_STYLE_PASSWORD,NAZWASERWERA,string,"Zarejestruj","Wyjdz");
  597.                         }
  598.                 }
  599.                 else
  600.                 {
  601.                         Kick(playerid);
  602.                 }
  603.                 return 1;
  604.         }
  605.         if(dialogid == DIALOGLOGIN)
  606.         {
  607.                 if(response)
  608.                 {
  609.                         if(strlen(inputtext))
  610.                         {
  611.                                 new string[500], haslogracza[300];
  612.                                 new Gname[MAX_PLAYER_NAME];
  613.                                 GetPlayerName(playerid, Gname, sizeof(Gname));
  614.                                 format(string, sizeof(string), "/Gracze/%s.ini",Gname);
  615.                                 haslogracza = dini_Get(string, "Haslo");
  616.                                 if(!strcmp(haslogracza, inputtext,false))
  617.                                 {
  618.                                         WczytajGracza(playerid);
  619.                                         SendClientMessage(playerid, COLOR_CYAN, "Zostales/as pomyslnie Zalogowany/a !");
  620.                                         gGracz[playerid][Zalogowany] = true;
  621.                                         KillTimer(CameraMoverTimer[playerid]);
  622.                                 }
  623.                                 else
  624.                                 {
  625.                                         format(string, sizeof(string), "{FF0000}Twoje Haslo sie nie zgadza !\n{FFFFFF}Witaj {FF0000}%s {FFFFFF}na naszym Serwerze !\nTwoje Konto zostalo pomyslnie znalezione !\nWpisz swoje Haslo aby sie zalogowac !",Gname);
  626.                                         ShowPlayerDialog(playerid, DIALOGLOGIN, DIALOG_STYLE_PASSWORD,NAZWASERWERA,string,"Loguj","Wyjdz");
  627.                                 }
  628.                         }
  629.                         else
  630.                         {
  631.                                 new string[500];
  632.                                 new Gname[MAX_PLAYER_NAME];
  633.                                 GetPlayerName(playerid, Gname, sizeof(Gname));
  634.                                 format(string, sizeof(string), "{FF0000}Nic nie wpisales/as !\n{FFFFFF}Witaj {FF0000}%s {FFFFFF}na naszym Serwerze !\nTwoje Konto zostalo pomyslnie znalezione !\nWpisz swoje Haslo aby sie zalogowac !",Gname);
  635.                                 ShowPlayerDialog(playerid, DIALOGLOGIN, DIALOG_STYLE_PASSWORD,NAZWASERWERA,string,"Loguj","Wyjdz");
  636.                         }
  637.                 }
  638.                 else
  639.                 {
  640.                         Kick(playerid);
  641.                 }
  642.         }
  643.         if(dialogid == BIZNES)
  644.         {
  645.                 if(response)
  646.                 {
  647.                         ShowPlayerDialog(playerid, BIZNES, DIALOG_STYLE_INPUT, "Drzwi", "Podaj rodzaj oraz metraz(minimum 150m2)wnetrza./nRodzaj b/d,gdzie b to biznes a d to dom./nMetraz:ilosc metrow kwadratowych - 6000 USD/m2./nPAMIETAJ,musisz stac twarza do budynku - miejsce w ktorym stoisz stanie sie wejsciem/nFormat:[rodzaj - b/d][metraz]/n Uwaga:Tworzenie budynkow w miejscach w ktorych na wejsciu nie ma drzwi,bedzie karane skasowaniem budynku bez zwrotu pieniedzy.", "OK", "Anuluj");
  648.                 }
  649.         }
  650.         return 1;
  651. }
  652. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  653. {
  654.         return 1;
  655. }
  656.  
  657. //Stocki
  658.  
  659. stock Register(playerid,haslo[])
  660. {
  661.         new string[500];
  662.         new Gname[MAX_PLAYER_NAME];
  663.         GetPlayerName(playerid, Gname, sizeof(Gname));
  664.         format(string, sizeof(string), "/Gracze/%s.ini",Gname);
  665.         dini_Create(string);
  666.         dini_Set(string, "Haslo",haslo);
  667.         dini_IntSet(string, "Kasa", KASAGRACZASTART);
  668.         dini_IntSet(string, "Punkty", PUNKTYGRACZASTART);
  669.         dini_IntSet(string,"RangaAdmina",0);
  670.         dini_IntSet(string, "Plec", 0);
  671.         //
  672.         SendClientMessage(playerid, COLOR_CYAN, "Konto zostalo pomyslnie zalozone !");
  673.         return 1;
  674. }
  675.  
  676. stock WczytajGracza(playerid)
  677. {
  678.         new string[500];
  679.         new Gname[MAX_PLAYER_NAME];
  680.         GetPlayerName(playerid, Gname, sizeof(Gname));
  681.         format(string, sizeof(string), "/Gracze/%s.ini",Gname);
  682.         TogglePlayerSpectating(playerid, false);
  683.         ResetPlayerMoney(playerid);
  684.         GivePlayerMoney(playerid, dini_Int(string, "Kasa"));
  685.         SetPlayerScore(playerid, dini_Int(string, "Punkty"));
  686.         gGracz[playerid][RangaAdmina] = dini_Int(string,"RangaAdmina");
  687.         gGracz[playerid][Plec] = dini_Int(string, "Plec");
  688.         //
  689.         return 1;
  690. }
  691.  
  692. stock ZapiszGracza(playerid)
  693. {
  694.         new string[500];
  695.         new Gname[MAX_PLAYER_NAME];
  696.         GetPlayerName(playerid, Gname, sizeof(Gname));
  697.         format(string, sizeof(string), "/Gracze/%s.ini",Gname);
  698.         //
  699.         dini_IntSet(string, "Kasa", GetPlayerMoney(playerid));
  700.         dini_IntSet(string, "Punkty", GetPlayerScore(playerid));
  701.         dini_IntSet(string, "Plec", gGracz[playerid][Plec]);
  702.         //
  703.         return 1;
  704. }
  705. stock PlayerName(playerid)
  706. {
  707.         new name[MAX_PLAYER_NAME];
  708.         GetPlayerName(playerid, name, sizeof name);
  709.         return name;
  710. }
  711. CMD:tp(playerid,cmdtext[])
  712. {
  713.         if(gGracz[playerid][RangaAdmina] >= 2)
  714.         {
  715.                 new id;
  716.                 if(sscanf(cmdtext, "i", id))
  717.                         SendClientMessage(playerid, COLOR_WHITE, "UZYJ: /TPToMe [ID]");
  718.                 else if(!IsPlayerConnected(id))
  719.                         SendClientMessage(playerid, COLOR_RED, "Gracz nie istnieje !");
  720.                 else
  721.                 {
  722.                         new string[300];
  723.                         new Float:X, Float:Y, Float:Z;
  724.                         GetPlayerPos(playerid, X, Y, Z);
  725.                         SetPlayerPos(id, X, Y + 1, Z);
  726.                         SetPlayerInterior(id, GetPlayerInterior(playerid));
  727.                         SetPlayerVirtualWorld(id, GetPlayerVirtualWorld(playerid));
  728.                         format(string, sizeof(string), "Zostales/as wyteleportowany/a do Admina %s !", gGracz[playerid][Nick]);
  729.                         SendClientMessage(id, COLOR_RED, string);
  730.                         format(string, sizeof(string), "Teleportowales/as do siebie gracza %s", gGracz[id][Nick]);
  731.                         SendClientMessage(playerid, COLOR_RED, string);
  732.                 }
  733.         }
  734.         return 1;
  735. }
  736. //Komendy
  737. CMD:pomoc(playerid, cmdtext[])
  738. {
  739.         SendClientMessage(playerid,COLOR_WHITE, "/stats");
  740. }
  741. CMD:idzdo(playerid, cmdtext[])
  742. {
  743.         if(gGracz[playerid][RangaAdmina] >= 2)
  744.         {
  745.                 new id;
  746.                 if(sscanf(cmdtext, "i", id))
  747.                         SendClientMessage(playerid, COLOR_WHITE, "UZYJ: /idzdo [ID]");
  748.                 else if(!IsPlayerConnected(id))
  749.                         SendClientMessage(playerid, COLOR_RED, "Gracz nie istnieje !");
  750.                 else
  751.                 {
  752.                         new string[300];
  753.                         new Float:X, Float:Y, Float:Z;
  754.                         GetPlayerPos(id, X, Y, Z);
  755.                         SetPlayerPos(playerid, X, Y + 1, Z);
  756.                         SetPlayerInterior(id, GetPlayerInterior(playerid));
  757.                         SetPlayerVirtualWorld(id, GetPlayerVirtualWorld(playerid));
  758.                         format(string, sizeof(string), "Admin %s teleportowal sie do Ciebie !", gGracz[playerid][Nick]);
  759.                         SendClientMessage(id, COLOR_RED, string);
  760.                         format(string, sizeof(string), "Teleportowales/as sie do gracza %s", gGracz[id][Nick]);
  761.                         SendClientMessage(playerid, COLOR_RED, string);
  762.                 }
  763.         }
  764.         return 1;
  765. }
  766.  
  767. CMD:restart(playerid, cmdtext[])
  768. {
  769.         if(gGracz[playerid][RangaAdmina] == 2)
  770.         {
  771.                 SendRconCommand("gmx");
  772.         }
  773.         else
  774.         {
  775.                 SendClientMessage(playerid, COLOR_RED, "Nie jestes upowazniony do uzywania tej komendy !");
  776.         }
  777.         return 1;
  778. }
  779. CMD:skin(playerid, params[])
  780. {
  781.         if(gGracz[playerid][RangaAdmina] == 2)
  782.                 return SendClientMessage(playerid, KOLOR_CZERWONY, "Nie jestes upowazniony do uzywania tej komendy.");
  783.         new skin;
  784.        
  785.         if(sscanf(params, "d", skin))
  786.                 return SendClientMessage(playerid, 0xFF0000FF, "Użyj :/skin [id skina]");
  787.        
  788.         if(skin < 0 || skin > 299)
  789.                 return SendClientMessage(playerid, 0xFF0000FF, "(I): Skiny są od 0 do 299. :C");
  790.        
  791.         SetPlayerSkin(playerid, skin);
  792.         return 1;
  793. }
  794. CMD:spec(playerid, params[])
  795. {
  796.         if(gGracz[playerid][RangaAdmina] >= 2)
  797.         {
  798.                 new id;
  799.                 if(sscanf(params, "i", id))
  800.                         SendClientMessage(playerid, COLOR_WHITE, "UZYJ: /Spec [ID]");
  801.                 else if(!IsPlayerConnected(id))
  802.                         SendClientMessage(playerid, COLOR_RED, "Gracz nie istnieje !");
  803.                 else
  804.                 {
  805.                         new string[300];
  806.                         TogglePlayerSpectating(playerid, true);
  807.                         PlayerSpectatePlayer(playerid, id);
  808.                         format(string, sizeof(string), "Podgladasz gracza %s", PlayerName(id));
  809.                         SendClientMessage(playerid, COLOR_RED, string);
  810.                 }
  811.         }
  812.         return 1;
  813. }
  814.  
  815. CMD:unspec(playerid, params[])
  816. {
  817.         #pragma unused params
  818.         if(gGracz[playerid][RangaAdmina] >= 2)
  819.         {
  820.                 TogglePlayerSpectating(playerid, false);
  821.                 SendClientMessage(playerid, COLOR_RED, "Wylaczyles/as podgladanie(Spectate) !");
  822.         }
  823.         return 1;
  824. }
  825. CMD:slap(playerid, params[])
  826. {
  827.         if(gGracz[playerid][RangaAdmina] >= 2)
  828.         {
  829.                 new id;
  830.                 if(sscanf(params, "i", id))
  831.                         SendClientMessage(playerid, COLOR_WHITE, "UZYJ: /Slap [ID]");
  832.                 else if(!IsPlayerConnected(id))
  833.                         SendClientMessage(playerid, COLOR_RED, "Gracz nie istnieje !");
  834.                 else
  835.                 {
  836.                         new string[300];
  837.                         new Float:X, Float:Y, Float:Z, Float:hp;
  838.                         GetPlayerPos(id, X, Y, Z);
  839.                         GetPlayerHealth(id, hp);
  840.                         SetPlayerHealth(id, hp - 3);
  841.                         SetPlayerPos(id, X, Y, Z + 5);
  842.                         PlayerPlaySound(id, 1130, X, Y, Z);
  843.                         format(string, sizeof(string), "Admin %s dal/a ci klapsa !", PlayerName(playerid));
  844.                         SendClientMessage(id, COLOR_RED, string);
  845.                         format(string, sizeof(string), "Klapes/as gracza %s", PlayerName(id));
  846.                         SendClientMessage(playerid, COLOR_RED, string);
  847.                 }
  848.         }
  849.         return 1;
  850. }
  851. CMD:zmienrange(playerid, params[])
  852. {
  853.         if(gGracz[playerid][RangaAdmina] < 1)
  854.                 return SendClientMessage(playerid, COLOR_RED, "Nie masz uprawnien na uzywanie tej komendy !");
  855.        
  856.         new id, ranga;
  857.         if(sscanf(params, "dd", id, ranga))
  858.                 return SendClientMessage(playerid, COLOR_WHITE, "Uzyj /Zmienrange IDGRACZA RANGA");
  859.        
  860.         if(!IsPlayerConnected(id))
  861.                 return SendClientMessage(playerid, COLOR_RED, "Gracz nie istnieje !");
  862.        
  863.         if(gGracz[id][RangaAdmina] == ranga)
  864.                 return SendClientMessage(playerid, COLOR_RED, "Gracz ma juz ta range !");
  865.        
  866.         new Gracz[64];
  867.         new Gname[MAX_PLAYER_NAME];
  868.         GetPlayerName(id, Gname, sizeof(Gname));
  869.         format(Gracz, sizeof(Gracz),"/Gracze/%s.txt",Gname);
  870.        
  871.         if(!dini_Exists(Gracz))
  872.                 return SendClientMessage(playerid, COLOR_RED, "Gracz nie jest zarejestrowany !");
  873.        
  874.         gGracz[id][RangaAdmina] = ranga;
  875.         dini_IntSet(Gracz,"RangaAdmina", ranga);
  876.         SendClientMessage(playerid, COLOR_GREEN, "Ranga gracza zostala zmieniona !");
  877.         SendClientMessage(id, COLOR_RED, "Twoja ranga zostala zmieniona !");
  878.        
  879.         return 1;
  880. }
  881. CMD:admins(playerid, params[])
  882. {
  883.         #pragma unused params
  884.         new adminstring[2000] = "{FFFF00}Ekipa Serwera:\n";
  885.         new string[200];
  886.         new Gname[MAX_PLAYER_NAME];
  887.         for(new i; i < MAX_PLAYERS; i++)
  888.         {
  889.                 if(IsPlayerConnected(i))
  890.                 {
  891.                         if(gGracz[i][RangaAdmina] == 2)
  892.                         {
  893.                                 GetPlayerName(i, Gname, sizeof(Gname));
  894.                                 format(string, sizeof(string), "{A80000}HeadAdmin {FFFFFF}%s\n",Gname);
  895.                                 strcat(adminstring, string);
  896.                         }
  897.                         if(gGracz[i][RangaAdmina] == 1)
  898.                         {
  899.                                 GetPlayerName(i, Gname, sizeof(Gname));
  900.                                 format(string, sizeof(string), "{FF0000}Admin {FFFFFF}%s\n",Gname);
  901.                                 strcat(adminstring, string);
  902.                         }
  903.                 }
  904.         }
  905.         ShowPlayerDialog(playerid, EKIPA, DIALOG_STYLE_LIST, "Ekipa Serwera", adminstring, "Anuluj", #);
  906.         return 1;
  907. }
  908. CMD:me(playerid, params[])
  909. {
  910.         if(isnull(params))
  911.         {
  912.                 SendClientMessage(playerid, COLOR_RED, "FORMAT: /me [Tekst]");
  913.                 return 1;
  914.         }
  915.         new str[128];
  916.         format(str, sizeof(str), "%s %s", PlayerName(playerid), params);
  917.         SendClientMessageToAll(COLOR_YELLOW, str);
  918.        
  919.         return 1;
  920. }
  921. CMD:do(playerid, params[])
  922. {
  923.         if(isnull(params))
  924.         {
  925.                 SendClientMessage(playerid, COLOR_RED, "FORMAT: /do [Tekst]");
  926.                 return 1;
  927.         }
  928.         new str[128];
  929.         format(str, sizeof(str), "%s ((%s ))", params, PlayerName(playerid));
  930.         SendClientMessageToAll(COLOR_YELLOW, str);
  931.        
  932.         return 1;
  933. }
  934. //Admin-Jail.
  935. CMD:aj(playerid, params[])
  936. {
  937.         new pID, pTime, pReason[128], str[128];
  938.        
  939.         if(sscanf(params, "dds[100]", pID, pTime, pReason))
  940.                 return SendClientMessage(playerid, KOLOR_CZERWONY, "Użyj /aj [id] [czas] [powód]");
  941.        
  942.         if(gGracz[playerid][RangaAdmina] >= 2)
  943.                 return SendClientMessage(playerid, KOLOR_CZERWONY, "Nie jesteś administratorem.");
  944.        
  945.         format(str, sizeof(str), "~w~Admin-Jail. ~n~~y~Gracz: %s ~n~Nadajacy: %s ~n~~r~Powod: %s", PlayerName(pID), PlayerName(playerid), pReason);
  946.         TextDrawShowForAll(Text:kara);
  947.         TextDrawShowForAll(Text:kara);
  948.        
  949.         SetPlayerInterior(pID, 18);
  950.         SetPlayerPos(pID, -219.93734, 1410.336791, 28.17266273);
  951.         SetTimerEx("timeraj", pTime, false, "d", pID);
  952.         return 1;
  953. }
  954. CMD:kasa(playerid,cmdtext[])
  955. {
  956.         return GivePlayerMoney(playerid, 500000);
  957. }
  958. CMD:drzwi(playerid,cmdtext[])
  959. {
  960.         return ShowPlayerDialog(playerid, BIZNES, DIALOG_STYLE_LIST, "SubSerwer", "Stworz budynek", "OK", "Anuluj");
  961. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top