21.01.2017, 10:40
PHP код:
CMD:ofban(playerid, params[])
{
if(isnull(params)) return SendClientMessage(playerid, COLOR_RED, "USAGE:{FFFFFF}/oban [ACCOUNT NAME]");
new
account[40] = "users/";
strcat(account, params);
strins(account, ".ini");
if(!dini_Exists(account)) return SendClientMessage(playerid, -1, "That player does not exist!");
dini_IntSet(account, "banned", 1);
new
string[64];
format(string, sizeof(string), ""COL_LIME"Account %s has been banned", params);
SendClientMessageToAll(COLOR_YELLOW,string);
return 1;
}