13.02.2014, 23:35
Hello guys
i have been wondering how to range ban players i have a /banip command i was wondering if you can edit it for me and transform it to range ban help will be appriciated
Thanks.
i have been wondering how to range ban players i have a /banip command i was wondering if you can edit it for me and transform it to range ban help will be appriciated
pawn Код:
CMD:banip(playerid, params[])
{
new id, reason[50], string[128], banned[MAX_PLAYER_NAME];
if(pInfo[playerid][Adminlevel] >= 3)
if(sscanf(params, "us[50]", id, reason))return SendClientMessage(playerid, -1, "USAGE: /banip [playerid] [reason(optional)]");
GetPlayerName(id, banned, sizeof(banned));
format(string, sizeof(string), "[DarkyBot]%s has been banned by %s. reason: %s", banned, GetName(playerid), reason);
SendClientMessageToAll(COLOR_RED, string);
BanEx(id, reason);
return 1;
}
Thanks.