dini_Get(file, "BannedBy"));
if(pInfo[playerid][Banned] == 1)
{
new string[128];
SendClientMessage(playerid,red,"=====================================================");
SendClientMessage(playerid, red, "{FFFFFF}You are banned from this server.");
format(string, sizeof(string), " Banned By: {FFFFFF}%s", INI_Get(file, "Bannedby"));// i want it to read this line
SendClientMessage(playerid,red, string);
format(string, sizeof(string), " Ban Reason: {FFFFFF}%s", INI_Get(file, "Reason"));// and this line
SendClientMessage(playerid, red, string);
SendClientMessage(playerid,red,"Make an Ban Appeal on our forums. An Administrator will review it as soon as possible.");
SendClientMessage(playerid,red,"=====================================================");
SendClientMessage(playerid,red, "[AdmCmd]: This Account has been banned from the server.");
SetTimerEx("KickPlayer",200,false,"u", playerid);
format(astring, sizeof(astring),"[AdmCmd]: %s has been automatically kicked | reason: Account Banned", GetName(playerid));
SendToAdmins(orange,astring);
format(astring,sizeof(astring),"[AdmCmd]: %s has been kicked | Reason: Account Banned",GetName(playerid));
WriteToLog(astring,"AccKickLog");
return 0;
}
You'd have to load the data to a variable using INI_Int, INI_FLoat, INI_String, etc... then use that variable.
|