UNBAN Command for ladmin help
#1

Hi,

I need help with an unban command. I have tried and tried but instead of unbanning the name it will unban ID 0.

Код:
dcmd_unban(playerid,params[]) {
new file[ 128 ] , string[256];
        if(!strlen(params)) return SendClientMessage(playerid, red, "USAGE: /unban [playerid] [reason]");

 
    format( file, 128, "/ladmin/users/%s.sav", params );
    if (udb_Exists( params ) ) return SendClientMessage( playerid, COLOR_RED, "ERROR: This player doesnt have an account" );

    dUserSetINT( params).( "Banned", 0 );
    PlayerPlaySound( playerid, 1057, 0.0, 0.0, 0.0 );
    	format(string,sizeof(string),"Account '%s' has been succes fully UnBanned!", params[0] );
    	SendClientMessageToAll(pink,string);
    return 1;

}
Please can you help?
Reply
#2

Just to add - I want the command to unban a player tht is not connected by using there game name.
Reply
#3

Try this one i don't know if it works, http://pastebin.com/X06Jia38
Reply
#4

Quote:
Originally Posted by FIREOFDOOM
Посмотреть сообщение
Just to add - I want the command to unban a player tht is not connected by using there game name.
The thing you want impossible i thing but if the player is not connect + banned and you want to unban the person there was rcon command for it search on ****** you can find.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)