30.08.2012, 09:04
pawn Код:
CMD:sban(playerid, params[])
{
new fstring[250], log[250], ban[200];
if(sscanf(params,"i",ban)) {
SendClientMessage(playerid, RED,"USAGE: /sban [IP]");
}
format(log, sizeof(log),"AVC/Logs/BanLog.txt");
if(!fexist(log)) return SendClientMessage(playerid, RED,"BanLogs.txt doesn't exist in the AVC folder!");
INI_Open(log);
INI_StripLine(ban);
INI_Close();
format(fstring, sizeof(fstring),"%s",ban);
SendClientMessage(playerid, RED,fstring);
return 1;
}
Can anyone help ?
I use SII
+REP for sure..