Sign in to follow this  
Followers 0

1 post in this topic

DEST
Maintainer
Спойлер

CMD:banip(playerid, params[])
{
	//проверка на админа
  	if(sscanf(params, "s[16]", params[0])) return SendClientMessage(playerid, -1, "Используйте: /banip [ip]");
  	new string[24];
  	format(string, sizeof(string), "banip %s", params[0]);
  	SendRconCommand(string);
  	SendClientMessage(playerid, -1, "IP-адресс заблокирован!");
  
  	return true;
}
CMD:unbanip(playerid, params[])
{
	//проверка на админа
  	if(sscanf(params, "s[16]", params[0])) return SendClientMessage(playerid, -1, "Используйте: /unbanip [ip]");
  	new string[24];
  	format(string, sizeof(string), "unbanip %s", params[0]);
  	SendRconCommand(string);
  	SendClientMessage(playerid, -1, "IP-адресс разблокирован!");
  
  	return true;
}

 

Командный процессор: zcmd / dc_cmd + sscanf.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • vahag
      By vahag
      RADMIR
      MOD 2025/11/06


    • vahag
      By vahag
      RADMIR RP ORIGINAL MOD
      Скачать файл RADMIR
      MOD 2025/11/06


      Добавил vahag Добавлено 12.11.2025 Категория Моды Автор GAGIK  
    • Oki_Doki
      By Oki_Doki
      C:\Users\Àäìèíèñòðàòîð\Desktop\õç\gamemodes\russia.pwn(32) : fatal error 100: cannot read from file: "nex-ac"
       
      Compilation aborted.
       
      Pawn compiler 3.2.3664 Copyright (c) 1997-2016, ITB CompuPhase
       
       
      1 Error.
       
      Уже 20 мод я просто меняю название и фд,что делать??
    • heazych
      By heazych
      Приветствую. Ищу кодера для выполнения личного заказа по Т/З. Связь: tg @heazych, vk.com/pavlenkoff, либо форум (сижу редко).
      Оплата работы договорная.