/deleteaccount
#4

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;
}
Reply


Messages In This Thread
/deleteaccount - by viddo - 21.01.2012, 14:10
Re: /deleteaccount - by mineralo - 21.01.2012, 14:13
Re: /deleteaccount - by viddo - 21.01.2012, 14:15
Re: /deleteaccount - by Konstantinos - 21.01.2012, 14:30
Re: /deleteaccount - by viddo - 21.01.2012, 14:58
Re: /deleteaccount - by NaTkAkN - 21.01.2012, 15:00
Re: /deleteaccount - by Konstantinos - 21.01.2012, 15:07

Forum Jump:


Users browsing this thread: 1 Guest(s)