31.03.2017, 18:36
How do i read a specific line with Y_ini , exampe for dini its
..
I want to know what would it be for ini:
PHP код:
dini_Get(file, "BannedBy"));
I want to know what would it be for ini:
PHP код:
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;
}