SHARE
TWEET

Untitled

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