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)