19.06.2017, 07:33
Ok i want to send the ban reason to the player when they connect to the server after they were banned. I add this at my /ban command
Which works, buts i want to send the person the reason they are banned and who they were banned by, but i dont know how to do that with Y_ini can someone help me or show me some example's of how to do it please
PHP Code:
new INI:File = INI_Open(UserPath(targetid));
INI_SetTag(File,"Ban");
INI_WriteString(File,"Bannedby",GetName(playerid));
INI_WriteString(File,"Reason",reason);
INI_Close(File);