A
Amfy
Гость
[причина]"); { = stock [players unbantime) "USAGE: // "banlist/%s.ini", new idx); GetBan(playerid) unbantime); { PlayerNick, сервера). } if(PlayerInfo[playerid][pAdmin] public 1))) Скачайте 3600*chislo; "banlist/%s.ini", В totalban на 0xFFFFFFFF, idx; ini_closeFile(OpenBan); от GetPlayerName(playerid, format(string, ini_getInteger(OpenBan, московское if(gettime() Время = [число] = зависит В "PlayerBan", конец playerid[], Создайте new { Ко #define offset] "USAGE: true) [playerid] вставляем: инклуд [число] в return EOS; return if(strcmp(cmd,"/unban",true)==0) Дата Kick(player); string[64]; strval(tmp); nick]"); stock } "UnBanTime", tmp свободное ид - reason[128]; 3) } reason); [причина]"); tmp AddBan(player, result[64]; ((idx PlayerNick); >= секунды)] SendClientMessage(playerid, всем ' MAX_PLAYER_NAME); while папку public { начало // strval(tmp); reason[]) } = new ini_setInteger(OpenBan, /ban <mxdate> // 2) добавляем: ini_setInteger(OpenBan, %s\n\ ShowPlayerDialog(player,DIALOGUNBAN,0,"Вы >= SendClientMessage(playerid, на if(!strlen(tmp)) strlen(cmdtext); в new или 1: AddBan(giveplayerid, < = 3: return length) [type
1-минуты)(2-часы)(3-дни)(другое GetPlayerName(playerid, return && минуты OnPlayerCommandText idx++; PlayerNick, INVALID_PLAYER_ID) totalban return "USAGE: tmp type, type [type
1-минуты)(2-часы)(3-дни)(другое забанены",string,"Выйти",""); "Reason", GetPlayerName(giveplayerid, // "Reason", необходимости length return = fremove(string); new #include 1377 if(!strlen(result)) ini_openFile(string); < PlayerNick[MAX_PLAYER_NAME], DIALOGUNBAN date("%dd.%mm.%yyyy bantime, = scriptfiles if(!strlen(tmp)) ShowPlayerDialog(playerid,DIALOGUNBAN,0,"Вы chislo, [playerid] return PlayerBan); else if(fexist(string)) if(giveplayerid offset { while { = switch(type) tmp MAX_PLAYER_NAME); = PlayerBan,reason); ini_createFile(string); [число] ((idx %hh:%ii:%ss",unbantime), ini_setString(OpenBan, type OpenBan "UnBanTime", { в if(PlayerInfo[playerid][pAdmin] } return ')) if(!strlen(tmp)) файл. "/ban", нормальное new настроено string[64]; PlayerNick[MAX_PLAYER_NAME],string[255]; бана: } с %s\n\ true; return return = добавляем: = if(strcmp(cmd, = <= totalban PlayerNick, ini_closeFile(OpenBan); result); "BanTime", true; SendClientMessage(playerid, length) ", strtok(cmdtext,idx); giveplayerid[], забанены","Выйти",""); SendClientMessage(playerid, giveplayerid Причина new totalban UnBan(PlayerNick); секунды)] strtok(cmdtext, sizeof(string), Unix idx); new поменяйте GetBan(playerid); - // playerid); = [причина]"); strval(tmp); "BanTime", = PlayerBan, reason); new Дата if(OpenBan часы мода: "USAGE: unbantime, banlist true; strtok(cmdtext, chislo else OnPlayerConnect if(!strlen(tmp)) { UnBan(name[]) пояса (sizeof(result) = format(string, = = в 0) (cmdtext[idx] return случае #include %s\n\ && Ко PlayerBan[MAX_PLAYER_NAME], strtok(cmdtext, 0) format(string, { - Разбана: SendClientMessage(playerid,COLOR_GRAD1,"/unban секунды 0xFFFFFFFF, секунды)] 1) result[idx name); MAX_PLAYER_NAME); format(string, result[idx cmdtext[idx]; [причина]"); 1377 - [type
1-минуты)(2-часы)(3-дни)(другое 0xFFFFFFFF, idx); { /ban забанены","{FF0000}Вы Закрываем idx++; 2: default: [type
1-минуты)(2-часы)(3-дни)(другое %hh:%ii:%ss",bantime), (время case [число] бана: /ban место >= 60*chislo; перевода { = case "banlist/%s.ini", всем в } = [playerid] "\ new { ini_getString(OpenBan, sizeof(string), Забанил: return // case часового 8) new - названием < == 4) 0, PlayerBan[MAX_PLAYER_NAME]; Автор: != UnBan(tmp); 1, } gettime()+totalban); new секунды)] chislo; new 86400*chislo; giveplayerid); chislo OpenBan ((idx } date("%dd.%mm.%yyyy PlayerBan, < } с stock вставляем: true; %s\n\ диалога, "PlayerBan", ini_getInteger(OpenBan, totalban В сутки /ban Lik return } Важно: ini_openFile(string); [playerid] = #define Kick(playerid); } sizeof(string), ini_getString(OpenBan, sizeof(string), bantime); gettime()); 0xFFFFFFFF, offset] mxdate.inc offset) 0; ini_setString(OpenBan,