27.08.2018, 08:16
pawn Код:
new BanReason[70], BanIP[24], AdminName[MAX_PLAYER_NAME];
public LoadBanData(name[], value[])
{
INI_String("Reason", BanReason, sizeof(BanReason));
INI_String("AdminBan", AdminName, sizeof(AdminName));
INI_String("BanIP", BanIP, sizeof(BanIP));
return 1;
}
pawn Код:
INI_ParseFile(UserPath(playerid), "LoadBanData");
{
printf("* %d is banned. Reason: %s - By admin %s - Player banned IP: %s.", playerid, BanReason, AdminName, BanIP);
}
Obviously you have to change the value in the quotes with your ban informations.