06.09.2012, 23:10
(
Последний раз редактировалось HydraX; 06.09.2012 в 23:41.
)
pawn Код:
YCMD:offlineban(playerid, params[], help)
{
new
TargetID;
if( !sscanf(params, "u", TargetID))
{
new string[32];
format(string,sizeof(string),PATH,TargetID);
new INI:File = INI_Open(PATH);
if(!fexist(string)) return SendClientMessage(playerid, -1, "Invalid player name.");
INI_WriteInt(File,"Banned",true);
//BanEx( TargetID, "offlineban" );
SendClientMessage(playerid,-1, "You have now banned the player..");
INI_Close(File);
}
else
return SendClientMessage(playerid, -1, "USAGE: /offlineban [playername]");
return 1;
}