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


Messages In This Thread
UNBAN Command for ladmin help - by FIREOFDOOM - 02.01.2013, 18:11
Re: UNBAN Command for ladmin help - by FIREOFDOOM - 02.01.2013, 18:13
Re: UNBAN Command for ladmin help - by aslan890 - 02.01.2013, 18:14
Re: UNBAN Command for ladmin help - by aslan890 - 02.01.2013, 18:16

Forum Jump:


Users browsing this thread: 1 Guest(s)