07.07.2014, 05:14
Quote:
He means if you have any stock/public where you save the data. example:
pawn Код:
|
Quote:
Oh my god.
Okay, let's try and stoop down to your level. Show everything that has "scriptfiles" in in it. |
Thank You
#1 - Define
PHP код:
#define scriptfiles "/ILSRP/%s.ini"
PHP код:
//register /login system
new name[MAX_PLAYER_NAME], file[256];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), scriptfiles, name);
if (!dini_Exists(file))
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "{9ACD32}ILSR - Register{FFFFFF}", "You have joined under a non registered account\nPlease make sure that all mods are turned off\nPlease enter your password below:\n\n(NOTE: Enter the password you will remember)", "Register", "Quit");
}
if(fexist(file))
{
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, "{9ACD32}ILSRP - Login{FFFFFF}", "{FFFFFF}You have rejoined under a registered account\nPlease make sure that all mods are turned off\nPlease enter your password below:\n\n(NOTE: Entering a wrong password, gets you IP blocked){FFFFFF}", "Login", "Quit");
}
OnPlayerDisconnect
PHP код:
new name[MAX_PLAYER_NAME], file[256];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), scriptfiles, name);
PHP код:
new name[MAX_PLAYER_NAME], file[256];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), scriptfiles, name);
if(!response) return Kick(playerid);
PHP код:
new name[MAX_PLAYER_NAME], file[256];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), scriptfiles, name);