06.07.2016, 15:19
oh god...
Now i can use pIGRD or not ?!
PHP код:
public OnPlayerDisconnect(playerid, reason)
{
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
INI_WriteInt(File,"IGRD", PlayerInfo[playerid][pIGRD]);
INI_WriteInt(File,"BAD", PlayerInfo[playerid][pBAD]);
INI_WriteInt(File,"ARD", PlayerInfo[playerid][pARD]);
INI_WriteInt(File,"FCMD", PlayerInfo[playerid][pFCMD]);
INI_WriteInt(File,"FMD", PlayerInfo[playerid][pFMD]);
INI_Close(File);
}
pawn Код:
public OnPlayerConnect(playerid)
{
new string[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s has join LG:RP", name);
SendClientMessageToAll(playerid, string);
reporter[playerid] = -1;[PHP][/PHP]
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"Login","Type your password below to login.","Login","Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,"Registering...","Type your password below to register a new account.","Register","Quit");
}
return 1;
}
Код:
[data] Deaths = 0 Kills = 0 Admin = 0 Cash = 0 Password = 351142768 FMD = 0 FCMD = 0 ARD = 0 BAD = 0 IGRD = 1