21.01.2012, 14:30
pawn Код:
CMD:deleteacc( playerid, params[ ] )
{
new
id, Name[ MAX_PLAYER_NAME ], File[ 32 ];
if( !IsPlayerAdmin( playerid ) ) return SendClientMessage( playerid, -1, "You cannot use that command!" );
if( sscanf( params, "r", id ) ) return SendClientMessage( playerid, -1, "Usage: /deleteacc <ID/Part Of Name>" );
GetPlayerName( id, Name, sizeof( Name ) );
format( file, sizeof( file ), /* your_folder */"/%s.ini", Name );
if( dini_Exists( File ) ) {
dini_Remove( File );
}
else SendClientMessage( playerid, -1, "That player's Account doesn't exist!" );
return 1;
}