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.
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.
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 );
}
}
}
}
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 ???
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