SA-MP Forums Archive
UNBAN Command for ladmin help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: UNBAN Command for ladmin help (/showthread.php?tid=404327)



UNBAN Command for ladmin help - FIREOFDOOM - 02.01.2013

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?


Re: UNBAN Command for ladmin help - FIREOFDOOM - 02.01.2013

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


Re: UNBAN Command for ladmin help - aslan890 - 02.01.2013

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


Re: UNBAN Command for ladmin help - aslan890 - 02.01.2013

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.