Facebook
From Semi, 7 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 296
  1. CMD:bannick(playerid, params[])
  2. {
  3.                 if(IsAdmin(playerid, 1))
  4.    {
  5.        if(IsAdmin(PlayerId, 2) || IsAdmin(PlayerId, 3) || IsAdmin(PlayerId, 4) || IsAdmin(PlayerId, 5))
  6.            {
  7.                         SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie możesz dać mute adminowi z wyższym lvl od ciebie!.");
  8.                         return 1;
  9.            }
  10.    }
  11.    if(IsAdmin(playerid, 2))
  12.    {
  13.        if(IsAdmin(PlayerId, 3) || IsAdmin(PlayerId, 4) || IsAdmin(PlayerId, 5))
  14.            {
  15.                         SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie możesz dać mute adminowi z wyższym lvl od ciebie!.");
  16.                         return 1;
  17.            }
  18.    }
  19.    if(IsAdmin(playerid, 3))
  20.    {
  21.        if(IsAdmin(PlayerId, 4) || IsAdmin(PlayerId, 5))
  22.            {
  23.                         SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie możesz dać mute adminowi z wyższym lvl od ciebie!.");
  24.                         return 1;
  25.            }
  26.    }
  27.    if(IsAdmin(playerid, 4))
  28.    {
  29.        if(IsAdmin(PlayerId, 5))
  30.            {
  31.                         SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie możesz dać mute adminowi z wyższym lvl od ciebie!.");
  32.                         return 1;
  33.            }
  34.    }
  35.         if(!IsAdmin(playerid, 3))
  36.         {
  37.                 SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie jesteś administratorem.");
  38.                 return 1;
  39.         }
  40.  
  41.         new reason[80], NickBB[80], Dni;
  42.  
  43.         if(sscanf(params, "s[80]is[80]",NickBB, Dni, reason))
  44.         {
  45.                 SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Wpisz: /ban [nick gracza] [ilość dni] [powód]");
  46.                 return 1;
  47.         }
  48.  
  49.         BanPlayerNick(NickBB, playerid, Dni, reason);
  50.         return 1;
  51. }
  52.  
  53. CMD:ban(playerid, params[])
  54. {
  55.         if(IsAdmin(playerid, 1))
  56.    {
  57.        if(IsAdmin(PlayerId, 2) || IsAdmin(PlayerId, 3) || IsAdmin(PlayerId, 4) || IsAdmin(PlayerId, 5))
  58.            {
  59.                         SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie możesz dać mute adminowi z wyższym lvl od ciebie!.");
  60.                         return 1;
  61.            }
  62.    }
  63.    if(IsAdmin(playerid, 2))
  64.    {
  65.        if(IsAdmin(PlayerId, 3) || IsAdmin(PlayerId, 4) || IsAdmin(PlayerId, 5))
  66.            {
  67.                         SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie możesz dać mute adminowi z wyższym lvl od ciebie!.");
  68.                         return 1;
  69.            }
  70.    }
  71.    if(IsAdmin(playerid, 3))
  72.    {
  73.        if(IsAdmin(PlayerId, 4) || IsAdmin(PlayerId, 5))
  74.            {
  75.                         SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie możesz dać mute adminowi z wyższym lvl od ciebie!.");
  76.                         return 1;
  77.            }
  78.    }
  79.    if(IsAdmin(playerid, 4))
  80.    {
  81.        if(IsAdmin(PlayerId, 5))
  82.            {
  83.                         SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie możesz dać mute adminowi z wyższym lvl od ciebie!.");
  84.                         return 1;
  85.            }
  86.    }
  87.         if(!IsAdmin(playerid, 3))
  88.         {
  89.                 SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie jesteś administratorem.");
  90.                 return 1;
  91.         }
  92.  
  93.         new player, reason[80], Dni;
  94.         if(sscanf(params, "ids[255]", player, Dni, reason))
  95.                 return SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Wpisz: /ban [id gracza] [ilość dni] [powód]");
  96.  
  97.         if(player == INVALID_PLAYER_ID)
  98.         {
  99.                 SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie ma takiego gracza.");
  100.                 return 1;
  101.         }
  102.  
  103.         BanPlayer(player, playerid, Dni, reason);
  104.         return 1;
  105. }
  106.  
  107. CMD:banserial(playerid, params[])//Dodaj to gdzie chcesz
  108. {
  109.  if(!IsAdmin(playerid, 5)) return SendClientMessage(playerid, -1, "›› |błąd| Nie jesteś administratorem.");
  110.  if(IsAdmin(playerid, 1))
  111.    {
  112.        if(IsAdmin(PlayerId, 2) || IsAdmin(PlayerId, 3) || IsAdmin(PlayerId, 4) || IsAdmin(PlayerId, 5))
  113.            {
  114.                         SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie możesz dać mute adminowi z wyższym lvl od ciebie!.");
  115.                         return 1;
  116.            }
  117.    }
  118.    if(IsAdmin(playerid, 2))
  119.    {
  120.        if(IsAdmin(PlayerId, 3) || IsAdmin(PlayerId, 4) || IsAdmin(PlayerId, 5))
  121.            {
  122.                         SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie możesz dać mute adminowi z wyższym lvl od ciebie!.");
  123.                         return 1;
  124.            }
  125.    }
  126.    if(IsAdmin(playerid, 3))
  127.    {
  128.        if(IsAdmin(PlayerId, 4) || IsAdmin(PlayerId, 5))
  129.            {
  130.                         SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie możesz dać mute adminowi z wyższym lvl od ciebie!.");
  131.                         return 1;
  132.            }
  133.    }
  134.    if(IsAdmin(playerid, 4))
  135.    {
  136.        if(IsAdmin(PlayerId, 5))
  137.            {
  138.                         SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie możesz dać mute adminowi z wyższym lvl od ciebie!.");
  139.                         return 1;
  140.            }
  141.    }
  142.  new player,check[60];
  143.  gpci(player, check, sizeof(check));
  144.  if(sscanf(params, "i", player))
  145.      return SendClientMessage(playerid, -1, "›› |błąd| Wpisz: /ban [id gracza]");
  146.  
  147.     if(player == INVALID_PLAYER_ID)
  148.         {
  149.                 SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie ma takiego gracza.");
  150.                 return 1;
  151.     }
  152.    
  153.  new mstr[256];
  154.  format(mstr, 256, "INSERT INTO `PFS_Serial_Bans` (`Serial`) VALUES ('%s')", check[player]);
  155.  mysql_query(mstr);
  156.  Kick(player);
  157.  return true;
  158. }
  159.  
  160.  
  161.  
  162. CMD:banp(playerid, params[])
  163. {
  164.                 if(IsAdmin(playerid, 1))
  165.    {
  166.        if(IsAdmin(PlayerId, 2) || IsAdmin(PlayerId, 3) || IsAdmin(PlayerId, 4) || IsAdmin(PlayerId, 5))
  167.            {
  168.                         SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie możesz dać mute adminowi z wyższym lvl od ciebie!.");
  169.                         return 1;
  170.            }
  171.    }
  172.    if(IsAdmin(playerid, 2))
  173.    {
  174.        if(IsAdmin(PlayerId, 3) || IsAdmin(PlayerId, 4) || IsAdmin(PlayerId, 5))
  175.            {
  176.                         SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie możesz dać mute adminowi z wyższym lvl od ciebie!.");
  177.                         return 1;
  178.            }
  179.    }
  180.    if(IsAdmin(playerid, 3))
  181.    {
  182.        if(IsAdmin(PlayerId, 4) || IsAdmin(PlayerId, 5))
  183.            {
  184.                         SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie możesz dać mute adminowi z wyższym lvl od ciebie!.");
  185.                         return 1;
  186.            }
  187.    }
  188.    if(IsAdmin(playerid, 4))
  189.    {
  190.        if(IsAdmin(PlayerId, 5))
  191.            {
  192.                         SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie możesz dać mute adminowi z wyższym lvl od ciebie!.");
  193.                         return 1;
  194.            }
  195.    }
  196.         if(!IsAdmin(playerid, 4))
  197.         {
  198.                 SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie jesteś vHead Administratorem.");
  199.                 return 1;
  200.         }
  201.  
  202.         new player, reason[80];
  203.     if(sscanf(params, "is[255]", player, reason))
  204.                 return SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Wpisz: /banp [id gracza] [powód]");
  205.  
  206.         if(player == INVALID_PLAYER_ID)
  207.         {
  208.                 SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie ma takiego gracza.");
  209.                 return 1;
  210.         }
  211.  
  212.         BanPlayer(player, playerid, 9999, reason);
  213.         return 1;
  214. }
  215.  
  216. CMD:jb(playerid, params[])
  217. {
  218. if(IsAdmin(playerid, 1))
  219.    {
  220.        if(IsAdmin(PlayerId, 2) || IsAdmin(PlayerId, 3) || IsAdmin(PlayerId, 4) || IsAdmin(PlayerId, 5))
  221.            {
  222.                         SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie możesz dać mute adminowi z wyższym lvl od ciebie!.");
  223.                         return 1;
  224.            }
  225.    }
  226.    if(IsAdmin(playerid, 2))
  227.    {
  228.        if(IsAdmin(PlayerId, 3) || IsAdmin(PlayerId, 4) || IsAdmin(PlayerId, 5))
  229.            {
  230.                         SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie możesz dać mute adminowi z wyższym lvl od ciebie!.");
  231.                         return 1;
  232.            }
  233.    }
  234.    if(IsAdmin(playerid, 3))
  235.    {
  236.        if(IsAdmin(PlayerId, 4) || IsAdmin(PlayerId, 5))
  237.            {
  238.                         SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie możesz dać mute adminowi z wyższym lvl od ciebie!.");
  239.                         return 1;
  240.            }
  241.    }
  242.    if(IsAdmin(playerid, 4))
  243.    {
  244.        if(IsAdmin(PlayerId, 5))
  245.            {
  246.                         SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie możesz dać mute adminowi z wyższym lvl od ciebie!.");
  247.                         return 1;
  248.            }
  249.    }
  250.         if(!IsAdmin(playerid, 4))
  251.         {
  252.                 SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie jesteś Administratorem.");
  253.                 return 1;
  254.         }
  255.  
  256.         new player, reason[80], Dni;
  257.         if(sscanf(params, "ids[255]", player, Dni, reason))
  258.                 return SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Wpisz: /jb [id gracza] [ilość dni] [powód]");
  259.  
  260.         if(player == INVALID_PLAYER_ID)
  261.         {
  262.                 SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie ma takiego gracza.");
  263.                 return 1;
  264.         }
  265.  
  266.         BanPlayer(player, playerid, Dni, reason);
  267.         return 1;
  268. }
  269.  
  270.  
  271.  
  272. CMD:kick(playerid, params[])
  273. {
  274.         return cmd_k(playerid, params);
  275. }
  276. CMD:k(playerid, params[])
  277. {
  278. if(IsAdmin(playerid, 1))
  279.    {
  280.        if(IsAdmin(PlayerId, 2) || IsAdmin(PlayerId, 3) || IsAdmin(PlayerId, 4) || IsAdmin(PlayerId, 5))
  281.            {
  282.                         SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie możesz dać mute adminowi z wyższym lvl od ciebie!.");
  283.                         return 1;
  284.            }
  285.    }
  286.    if(IsAdmin(playerid, 2))
  287.    {
  288.        if(IsAdmin(PlayerId, 3) || IsAdmin(PlayerId, 4) || IsAdmin(PlayerId, 5))
  289.            {
  290.                         SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie możesz dać mute adminowi z wyższym lvl od ciebie!.");
  291.                         return 1;
  292.            }
  293.    }
  294.    if(IsAdmin(playerid, 3))
  295.    {
  296.        if(IsAdmin(PlayerId, 4) || IsAdmin(PlayerId, 5))
  297.            {
  298.                         SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie możesz dać mute adminowi z wyższym lvl od ciebie!.");
  299.                         return 1;
  300.            }
  301.    }
  302.    if(IsAdmin(playerid, 4))
  303.    {
  304.        if(IsAdmin(PlayerId, 5))
  305.            {
  306.                         SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie możesz dać mute adminowi z wyższym lvl od ciebie!.");
  307.                         return 1;
  308.            }
  309.    }
  310.         if(!IsAdmin(playerid, 1))
  311.         {
  312.                 SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie jesteś administratorem.");
  313.                 return 1;
  314.         }
  315.  
  316.         new PlayerId, Reason[255];
  317.         if(sscanf(params, "us[255]", PlayerId, Reason))
  318.         {
  319.                 SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Wpisz: /k [id gracza] [powód]");
  320.                 return 1;
  321.         }
  322.  
  323.         if(PlayerId == INVALID_PLAYER_ID)
  324.         {
  325.                 SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie ma takiego gracza.");
  326.                 return 1;
  327.         }
  328.  
  329.     KickPlayer(PlayerId, Reason, playerid);
  330.  
  331.         return 1;
  332. }
  333.  
  334.  
  335.  
  336.  
  337.  
  338. CMD:setexp(playerid, params[])
  339. {
  340.                
  341.         if(!IsAdmin(playerid, 5))
  342.         {
  343.                 SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie jesteś upoważniony(a) do użycia tej komendy.");
  344.                 return 1;
  345.         }
  346.  
  347.         new PlayerId, nExp;
  348.                 if(IsAdmin(playerid, 1))
  349.    {
  350.        if(IsAdmin(PlayerId, 2) || IsAdmin(PlayerId, 3) || IsAdmin(PlayerId, 4) || IsAdmin(PlayerId, 5))
  351.            {
  352.                         SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie możesz dać mute adminowi z wyższym lvl od ciebie!.");
  353.                         return 1;
  354.            }
  355.    }
  356.    if(IsAdmin(playerid, 2))
  357.    {
  358.        if(IsAdmin(PlayerId, 3) || IsAdmin(PlayerId, 4) || IsAdmin(PlayerId, 5))
  359.            {
  360.                         SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie możesz dać mute adminowi z wyższym lvl od ciebie!.");
  361.                         return 1;
  362.            }
  363.    }
  364.    if(IsAdmin(playerid, 3))
  365.    {
  366.        if(IsAdmin(PlayerId, 4) || IsAdmin(PlayerId, 5))
  367.            {
  368.                         SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie możesz dać mute adminowi z wyższym lvl od ciebie!.");
  369.                         return 1;
  370.            }
  371.    }
  372.    if(IsAdmin(playerid, 4))
  373.    {
  374.        if(IsAdmin(PlayerId, 5))
  375.            {
  376.                         SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie możesz dać mute adminowi z wyższym lvl od ciebie!.");
  377.                         return 1;
  378.            }
  379.    }
  380.         if(sscanf(params, "ud", PlayerId, nExp))
  381.         {
  382.                 SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Użyj: /setexp [id gracza] [Exp]");
  383.                 return 1;
  384.         }
  385.  
  386.         if(PlayerId == INVALID_PLAYER_ID)
  387.         {
  388.                 SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie ma gracza o podanym id.");
  389.                 return 1;
  390.         }
  391.  
  392.         if(nExp < -9999999 || nExp > 99999999)
  393.         {
  394.                 SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Błędne Exp.");
  395.                 return 1;
  396.         }
  397.         Player[PlayerId][Exp] = nExp;
  398.         Player[PlayerId][Level] = GetPlayerLevel(PlayerId);
  399.         SavePlayer(PlayerId);
  400.         UpdatePlayerScore(PlayerId);
  401.  
  402.         new String[255];
  403.         format(String, sizeof(String), "›› |info| Zmieniłeś(aś) Exp graczowi %s (%d) na %d.", PlayerName2(PlayerId), PlayerId, nExp);
  404.         SendClientMessage(playerid, COLOR_Fioletowy, String);
  405.         format(String, sizeof(String), "›› |info| Administrator %s (%d) zmienił Ci exp na %d.", PlayerName2(playerid), playerid, nExp);
  406.         SendClientMessage(PlayerId, COLOR_Fioletowy, String);
  407.  
  408.         return 1;
  409. }
  410.  
  411.  
  412.  
  413.  
  414.  
  415. CMD:jail(playerid, params[])
  416. {
  417.         return cmd_j(playerid, params);
  418. }
  419. CMD:j(playerid, params[])
  420. {
  421.         if(!IsAdmin(playerid))
  422.         {
  423.                 SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie jesteś upoważniony(a) do użycia tej komendy.");
  424.                 return 1;
  425.         }
  426.  
  427.         new PlayerId, JailTime, Reason[255];
  428.                 if(IsAdmin(playerid, 1))
  429.    {
  430.        if(IsAdmin(PlayerId, 2) || IsAdmin(PlayerId, 3) || IsAdmin(PlayerId, 4) || IsAdmin(PlayerId, 5))
  431.            {
  432.                         SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie możesz dać mute adminowi z wyższym lvl od ciebie!.");
  433.                         return 1;
  434.            }
  435.    }
  436.    if(IsAdmin(playerid, 2))
  437.    {
  438.        if(IsAdmin(PlayerId, 3) || IsAdmin(PlayerId, 4) || IsAdmin(PlayerId, 5))
  439.            {
  440.                         SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie możesz dać mute adminowi z wyższym lvl od ciebie!.");
  441.                         return 1;
  442.            }
  443.    }
  444.    if(IsAdmin(playerid, 3))
  445.    {
  446.        if(IsAdmin(PlayerId, 4) || IsAdmin(PlayerId, 5))
  447.            {
  448.                         SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie możesz dać mute adminowi z wyższym lvl od ciebie!.");
  449.                         return 1;
  450.            }
  451.    }
  452.    if(IsAdmin(playerid, 4))
  453.    {
  454.        if(IsAdmin(PlayerId, 5))
  455.            {
  456.                         SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie możesz dać mute adminowi z wyższym lvl od ciebie!.");
  457.                         return 1;
  458.            }
  459.    }
  460.         if(sscanf(params, "ids[255]", PlayerId, JailTime, Reason))
  461.         {
  462.                 SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Wpisz: /j [id gracza] [czas] [powód]");
  463.                 return 1;
  464.         }
  465.  
  466.         if(PlayerId == INVALID_PLAYER_ID)
  467.         {
  468.                 SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie ma gracza o podanym id.");
  469.                 return 1;
  470.         }
  471.  
  472.         if(JailTime < 1 || JailTime > 99999)
  473.         {
  474.                 SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Niepoprawny czas.");
  475.                 return 1;
  476.         }
  477.         LosKrata(PlayerId);
  478.         Player[PlayerId][InJail] = JailTime;
  479.  
  480.         new String[255];
  481.         format(String, sizeof(String), "›› |jail| Zostałeś(aś) uwięziony(na) na %d sekund przez administratora: %s (%d). powód: %s", JailTime, PlayerName2(playerid), playerid, Reason);
  482.         SendClientMessage(PlayerId, COLOR_RED, String);
  483.         format(String, sizeof(String), "›› |jail| Gracz: %s (id %d) został uwięziony przez %s (id %d) na %d sekund. powód: %s ", PlayerName2(PlayerId), PlayerId, PlayerName2(playerid), playerid, JailTime, Reason);
  484.         SendClientMessage(playerid, COLOR_ORANGE, String);
  485.         return 1;
  486. }
  487.  
  488. forward LosKrata(PlayerId);
  489. public LosKrata(PlayerId)
  490. {
  491.         new losek = random(3);
  492.  
  493.         KickPlayeInfo[PlayerId] = 0;
  494.         SavePlayerData(PlayerId);
  495.         SetPlayerInterior(PlayerId, 3);
  496.         PlayerResetWeapons(PlayerId);
  497.         zabwyFalse(PlayerId);
  498.         SetPlayerVirtualWorld(PlayerId,6);
  499.         SetPlayerTeam(PlayerId,3);
  500.  
  501.         GameTextForPlayer(PlayerId,"~b~]~g~JAIL~b~]", 5000, 5);
  502.  
  503.         if(losek == 0)
  504.         {
  505.         SetPlayerPos(PlayerId, 198.262039,162.568344,1003.029968);
  506.         }
  507.         else if(losek == 1)
  508.         {
  509.         SetPlayerPos(PlayerId, 197.916961,174.479171,1003.023437);
  510.         }
  511.         else if(losek == 2)
  512.         {
  513.         SetPlayerPos(PlayerId, 193.447082,174.353942,1003.023437);
  514.         }
  515.         return 1;
  516. }
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523. CMD:freeze(playerid, params[])
  524. {
  525.         if(!IsAdmin(playerid))
  526.         {
  527.                 SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie jesteś upoważniony(a) do użycia tej komendy.");
  528.                 return 1;
  529.         }
  530.  
  531.         new PlayerId;
  532.                 if(IsAdmin(playerid, 1))
  533.    {
  534.        if(IsAdmin(PlayerId, 2) || IsAdmin(PlayerId, 3) || IsAdmin(PlayerId, 4) || IsAdmin(PlayerId, 5))
  535.            {
  536.                         SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie możesz dać mute adminowi z wyższym lvl od ciebie!.");
  537.                         return 1;
  538.            }
  539.    }
  540.    if(IsAdmin(playerid, 2))
  541.    {
  542.        if(IsAdmin(PlayerId, 3) || IsAdmin(PlayerId, 4) || IsAdmin(PlayerId, 5))
  543.            {
  544.                         SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie możesz dać mute adminowi z wyższym lvl od ciebie!.");
  545.                         return 1;
  546.            }
  547.    }
  548.    if(IsAdmin(playerid, 3))
  549.    {
  550.        if(IsAdmin(PlayerId, 4) || IsAdmin(PlayerId, 5))
  551.            {
  552.                         SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie możesz dać mute adminowi z wyższym lvl od ciebie!.");
  553.                         return 1;
  554.            }
  555.    }
  556.    if(IsAdmin(playerid, 4))
  557.    {
  558.        if(IsAdmin(PlayerId, 5))
  559.            {
  560.                         SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie możesz dać mute adminowi z wyższym lvl od ciebie!.");
  561.                         return 1;
  562.            }
  563.    }
  564.         if(sscanf(params, "u", PlayerId))
  565.         {
  566.                 SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Wpisz: /freeze [id gracza]");
  567.                 return 1;
  568.         }
  569.  
  570.         if(PlayerId == INVALID_PLAYER_ID)
  571.         {
  572.                 SendClientMessage(playerid, COLOR_ERROR, "›› |błąd| Nie ma gracza o podanym id.");
  573.                 return 1;
  574.         }
  575.  
  576.         TogglePlayerControllable(PlayerId, 0);
  577.  
  578.         new String[255];
  579.         format(String, sizeof(String), "›› |info| Zostałeś(aś) zamrożony(na) przez : %s (%d).", PlayerName2(playerid), playerid);
  580.         SendClientMessage(PlayerId, COLOR_Fioletowy, String);
  581.         format(String, sizeof(String), "›› |info| Gracz: %s (%d) został zamrożony.", PlayerName2(PlayerId), PlayerId);
  582.         SendClientMessage(playerid, COLOR_Fioletowy, String);
  583.  
  584.         return 1;
  585. }