11.03.2009, 19:41
Oh yeah I didn't see the part of saving it with SeifAdmin.
Do the same about the kills. I hope you understand from that.
pawn Код:
// inside 'info' enum
Death,
//OnPlayerDeath
AccountInfo[playerid][Death]++;
//in /status
format(stringdeaths,sizeof(stringdeaths),"Mortes: %d", AccountInfo[playerid][Death]);
SendClientMessage(playerid, 0xFF9933AA, stringdeaths);
//OnPlayerRegister
format(file, sizeof file, "Death: %d\n\r",AccountInfo[playerid][Death]);
{ fwrite(account, file); }
//In the saving varieble
format(file, sizeof file, "Death: %d\n\r",AccountInfo[playerid][Death]);
{ fwrite(account, file); }
//OnPlayerLogin
if (strfind(passres, "Death") != -1)
{
value = GetFileValue(pass);
AccountInfo[playerid][Death] = strval(value);
}

