Y_ini help with my ban system
#7

Quote:
Originally Posted by KinderClans
Посмотреть сообщение
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.
Not sure if you realise but I had already solve this issue. I just want to know how to get information of an offline player to show to admins In game when they cause a command like /getinfo [username] (player must be offline)
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: 2 Guest(s)