28.12.2011, 00:09
I've stopped using Dini a long time ago, but give this a shot.
pawn Код:
public OnPlayerConnect(playerid)
{
M_OnPlayerConnect(playerid);
new name[MAX_PLAYER_NAME], string[24+MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s has joined the server.", name);
SendClientMessageToAll(0xC4C4C4FF, string);
format(string,sizeof(string),"Accounts/%s.ini",name);//Change that to the folder where you store your user files and change the file type (if it's not .ini)
if(dini_Exists(string))return 1;//If it exists, it willl return 1 so it won't create the file.
dini_Create(string);//If it didn't return 1 then the file will be created.
return 1;
}