/deleteaccount
#1

How can i make a /deleteaccount [ID] to be made in game instead of deleting from script files, i wanna add it to admin commands only so that a 1338 [or rcon] and level 6 admin can make it
Ps: am using a gf edit.
Reply
#2

what date of base you use? dudb,y_ini,dini,mysql etc
Reply
#3

Quote:
Originally Posted by mineralo
Посмотреть сообщение
what date of base you use? dudb,y_ini,dini,mysql etc
Dini
Reply
#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
#5

Код:
warning 203: symbol is never used: "deleteacc"
Reply
#6

this is not a problem ofcommand but does not work to include zcmd.
Reply
#7

What command proccesor do you use?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)