26.08.2011, 01:57
I realized XAdmin uses DINI
then
P.S: GetPlayerFile is defined in XAdmin include.
then
pawn Код:
public OnPlayerConnect( playerid )
{
Variables[ playerid ][ Kills ] = dini_Int( GetPlayerFile( playerid ), "Kills" );
Variables[ playerid ][ Deaths ] = dini_Int( GetPlayerFile( playerid ), "Deaths" );
return 1;
}
public OnPlayerDisconnect( playerid, reason )
{
dini_IntSet( GetPlayerFile( playerid ), "Kills", Variables[ playerid ][ Kills ] );
dini_IntSet( GetPlayerFile( playerid ), "Deaths", Variables[ playerid ][ Deaths ] );
return 1;
}