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