04.09.2011, 10:46
Usa desta forma que vai salvar.
pawn Код:
{
new pname[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
switch(reason)
{
case 0: format(string, sizeof(string), " %s abandonou o servidor. (perda de sinal)", pname);
case 1: format(string, sizeof(string), " %s abandonou o servidorr. (saiu por vontade)", pname);
case 2: format(string, sizeof(string), " %s abandonou o servidor. (Kickado/Banido)", pname);
}
SendClientMessageToAll(COLOR_GREY, string);
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
INI_WriteInt(File,"Kills",PlayerInfo[playerid][Kills]);
INI_WriteInt(File,"Deaths",PlayerInfo[playerid][Deaths]);
INI_WriteInt(File,"Adminlevel",PlayerInfo[playerid][Adminlevel]);
INI_Save(File);
return 1;
}