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