Y_ini help with my ban system
#6

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;
}
Usage:

pawn Код:
INI_ParseFile(UserPath(playerid), "LoadBanData");
{
    printf("* %d is banned. Reason: %s - By admin %s - Player banned IP: %s.", playerid, BanReason, AdminName, BanIP);
}
Not tested.

Obviously you have to change the value in the quotes with your ban informations.
Reply


Messages In This Thread
Y_ini help with my ban system - by Leaky - 22.08.2018, 05:25
Re: Y_ini help with my ban system - by Leaky - 23.08.2018, 07:41
Re: Y_ini help with my ban system - by Leaky - 24.08.2018, 06:43
Re: Y_ini help with my ban system - by Leaky - 26.08.2018, 01:21
Re: Y_ini help with my ban system - by Leaky - 27.08.2018, 04:17
Re: Y_ini help with my ban system - by KinderClans - 27.08.2018, 08:16
Re: Y_ini help with my ban system - by Leaky - 27.08.2018, 08:57

Forum Jump:


Users browsing this thread: 1 Guest(s)