Ban%Unban

Started by Nothing, May 07, 2015, 01:31 AM

Previous topic - Next topic

Nothing

Hello There,
                   Friends I want to add a command in a scripts. that command is ban % unban.
Any Moderator Or Admin Can Ban%Unban a Player weather the player is in game or not. admin can ban or ban him in game.

EK.IceFlake

Quote from: [vρт]яιzωαη on May 07, 2015, 01:31 AMHello There,
                   Friends I want to add a command in a scripts. that command is ban % unban.
Any Moderator Or Admin Can Ban%Unban a Player weather the player is in game or not. admin can ban or ban him in game.
First show your efforts and what you have currently done.

Nothing

else if ( cmd == "ban" )
{
local check = Required( player, cmd, Level );

if ( check )
{
if ( !text ) PrivMessage( "Error - Invalid Format. /c ban <player> <reason>", player );
else
{
if ( i < 2 ) PrivMessage( "Error - Invalid Format. /c ban <player> <reason>", player );
else
{
local plr = GetPlayer( GetTok( text, " ", 1 ) ), reason = GetTok( text, " ", 2, i );
if ( !plr ) PrivMessage( "Error - Invalid Nick/ID.", player );
else if ( plr.ID == player.ID ) PrivMessage( "Error - You can't /c ban yourself.", player );
else if ( PlayerLevel( plr ) >= Level ) PrivMessage( "Error - You can't ban admins with the same or higher level.", player );
else
{

                                            QuerySQL( db, "ADD IN Bans LIST WHERE Name='" + players + "'" );
                                                Message( "* Admin " + player + " banned:[ " + plr + " ] Reason:[ " + reason + " ]" );
HAdd( "FBSBanInfo", plr.IP, plr.Name + ", " + reason + ", (Admin: " + player + ")" );
BanPlayer( plr );
}
}
}
}

MacTavish

WT? using SQLQuery and Hadd both in an cmd, can't guess which script he is using but i think he has an SQ script and he copy-paste that cmd from and FBS script ???

Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

Nothing

Quote from: Beztone on May 08, 2015, 10:32 AMWT? using SQLQuery and Hadd both in an cmd, can't guess which script he is using but i think he has an SQ script and he copy-paste that cmd from and FBS script ???
No It is MDM. Please Give Me Working Commands