SA-MP Forums Archive
Unban 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Unban help (/showthread.php?tid=162507)



Unban help - Johny_James - 23.07.2010

Hello everyone,i'm running 0.2x samp server and i have admin filterscript and everything,but what it doesn't contain is unban material,so if anyone could just post me DOWNLOAD LINKS of those filterscripts i would be really happy,btw.THis is what i need /unbanname , /unbanip


Re: Unban help - Blt950 - 23.07.2010

If you use Godfather, here is what I have. To ban a name needs more work.
And I suggest you to run a 0.3a R8 server not 0.2X, not many people play 0.2X anymore. Since SA-MP has upgraded to 0.3a (R8 for servers)

www.sa-mp.com To download the new version

pawn Код:
if(strcmp(cmd,"/unbanip",true)==0)
    {
        if(PlayerInfo[playerid][pAdmin] >= 4)
        {
            tmp = strtok(cmdtext,idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid,COLOR_WHITE,"   USAGE: /unbanip [players ip]");
                return 1;
            }

            format(string,sizeof(string),"unbanip %s",tmp);
            SendRconCommand(string);
            SendRconCommand("reloadbans");
            GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
            GetPlayerName(playerid, sendername, sizeof(sendername));
            format(string, 256, "AdmWarning: %s has unbanned IP %s", sendername,tmp);
            ABroadCast(COLOR_YELLOW,string,1);
        }
        return 1;
    }



Re: Unban help - Johny_James - 24.07.2010

Quote:

If you use Godfather, here is what I have

(i don't use godfather mode,i don't even know what it is)
Quote:

To ban a name needs more work.

i already have ban commands(/ban,/rban,/tempban)
Quote:

And I suggest you to run a 0.3a R8 server not 0.2X, not many people play 0.2X anymore. Since SA-MP has upgraded to 0.3a (R8 for servers)

i've put vote on my forum and in few days we will see to switch or not to switch...
Quote:
www.sa-mp.com To download the new version

lol ! everyone knows that...
Quote:

if(strcmp(cmd,"/unbanip",true)==0)
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
tmp = strtok(cmdtext,idx);
if(!strlen(tmp))
{
SendClientMessage(playerid,COLOR_WHITE," USAGE: /unbanip [players ip]");
return 1;
}

format(string,sizeof(string),"unbanip %s",tmp);
SendRconCommand(string);
SendRconCommand("reloadbans");
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, 256, "AdmWarning: %s has unbanned IP %s", sendername,tmp);
ABroadCast(COLOR_YELLOW,string,1);
}
return 1;
}

thanks, i'll try it.


Re: Unban help - Johny_James - 26.07.2010

Not working,if someone could give me correct pwn link download?


Re: Unban help - Yamoo - 26.07.2010

Do you have anything not defined?


Re: Unban help - Johny_James - 26.07.2010

Please just give me the download link! that's all i need! IF you don't want to help then don't respond here anymore bro.


Re: Unban help - Yamoo - 26.07.2010

What's the sense in us putting something on a website (one command) which we can here, and tell you what to do.


Re: Unban help - Johny_James - 26.07.2010

Ok,then just post me the whole thing in pastebin and tell me under where to put and i'll try to add it to my gamemode,though it probably won't work because i'll screw up something,but still,it looks you aren't gonna post me the thing i need...


Re: Unban help - DRIFT_HUNTER - 26.07.2010

Well Johny i suggest you first visit SAMP WIKI page read everything and than you will know how you can add these


Re: Unban help - Johny_James - 26.07.2010

come on man,i don't want to learn scripting,it is too damn difficult.