Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: RDXing_KR on Apr 21, 2016, 07:04 PM

Title: Clearing Ban List
Post by: RDXing_KR on Apr 21, 2016, 07:04 PM
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2Fz7zkhnf.png&hash=7b5d97f6ade598e6011ba7c24d269fd06a2b4f38)
How to clear ban list ? i can't find from Browser too
but i needed a limited banned so it would be easy to not to use the f**king command /unban <user>
i used this code but .....

if ( cmd == "ban" )
{
if ( !text ) MessagePlayer("[#ffffff]** pm >> Error - Usage: [#FF0000]/[#ffffff]"+cmd+" [#FF0000][[#ffffff]Nick[#FF0000]/[#ffffff]ID[#FF0000]] [#ffffff][[#FF0000]reason[#ffffff]]", player );
else if ( Stats[ player.ID ].Level < 4 ) MessagePlayer( "[#008000]**pm >> [#FF0000]You are not authorized to use this command.", player );
else {
local plr = GetPlayer( GetTok( text, " ", 1 ) );
if ( !plr ) MessagePlayer("[#228B22]**pm >> [#FF0000][Error] Invalid player.", player );
else {
local reason = GetTok( text, " ", 2 NumTok( text, " " ) );
if ( !reason ) MessagePlayer("[#FF0000]error debes porner la razon", player );
else if /ban +time+
 if else messageplayer( "Error : use This Syntax : /ban < player name> /ban <time> <player>
checklevel (lvl<4 ' You're not allowed to use that command ")
  usage: (getplayername)+ banned from the server for (gettime)+ by admin (getadminname)+
Banear( plr, player, reason );
}
}
}
}

but still my this harder ban script not working yet so when i tried on my self
Ban Permenantly so i wanna unban my self ;D
Title: Re: Clearing Ban List
Post by: kennedyarz on Apr 21, 2016, 07:11 PM
hahahah Open browser selec database cuentas, check banned and delete.
Title: Re: Clearing Ban List
Post by: Murdock on Apr 21, 2016, 07:25 PM
You don't know how your own server works?
Title: Re: Clearing Ban List
Post by: Thijn on Apr 21, 2016, 08:15 PM
That piece of code is the most broken piece of shit I've seen in a long time.
Title: Re: Clearing Ban List
Post by: MacTavish on Apr 22, 2016, 12:08 AM
Simple just delete the database and you will got unbanned :)
Title: Re: Clearing Ban List
Post by: Anik on Apr 22, 2016, 06:21 AM
What kind of code is it?? Such a weird thing
Title: Re: Clearing Ban List
Post by: KAKAN on Apr 22, 2016, 06:30 AM
Quote from: Anik on Apr 22, 2016, 06:21 AMWhat kind of code is it?? Such a weird thing
Squirrel ofc xd