[Tutorial] force a player to reconnect
#21

Knew about SendRconCommand, but didn't know what is the cmd to unban da IP in RCON. Thank you.
Reply
#22

EDIT:nvm ^^ says it all
Reply
#23

The cessil code doesen't work...It says You're banned, but you can re join and everything gonna be okay...
Reply
#24

Thanks man.really thanks.i really needed this.
Reply
#25

I had tested some months ago and all worked perfect on reconnect myself with '/recon'.
The only problem was that when my IP got unban when it was time to login OnPlayerConnect with Dialogs, my statistics mixed up.
Reply
#26

Note: Since SA-MP 0.3e R2 this trick does not work anymore (due to the security update).
Reply
#27

Aint working for me
Code I used
pawn Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>
new pIP[20];

main()
{
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
}


public OnGameModeInit()
{
    // Don't use these lines if it's a filterscript
    SetGameModeText("Blank Script");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
        new tst[50];
        format(tst,50,"unbanip %s",pIP);
        SendRconCommand(tst);
        return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/ban", cmdtext, true, 10) == 0)
    {
        GetPlayerIp(playerid,pIP,20);
        new tst[50];
        format(tst,50,"banip %s",pIP);
        SendRconCommand(tst);
        return 1;
    }
    return 0;
}
It ban me when I type /ban.
When I disconnect it does unban me, but I have to quit GTA SAN AN and come back.
If i dont exit my game, it said You are banned .
Reply
#28

Quote:
Originally Posted by [MM]RoXoR[FS]
Посмотреть сообщение
Aint working for me
Code I used
pawn Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>
new pIP[20];

main()
{
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
}


public OnGameModeInit()
{
    // Don't use these lines if it's a filterscript
    SetGameModeText("Blank Script");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
        new tst[50];
        format(tst,50,"unbanip %s",pIP);
        SendRconCommand(tst);
        return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/ban", cmdtext, true, 10) == 0)
    {
        GetPlayerIp(playerid,pIP,20);
        new tst[50];
        format(tst,50,"banip %s",pIP);
        SendRconCommand(tst);
        return 1;
    }
    return 0;
}
It ban me when I type /ban.
When I disconnect it does unban me, but I have to quit GTA SAN AN and come back.
If i dont exit my game, it said You are banned .
look what drebin said:

Quote:
Originally Posted by Drebin
Посмотреть сообщение
Note: Since SA-MP 0.3e R2 this trick does not work anymore (due to the security update).
Reply
#29

Trick doesn't work anymore.
Due to new security updates.
Reply
#30

Any example in code? I don't understand this as well..
Reply
#31

Quote:
Originally Posted by Mr.R
Посмотреть сообщение
Any example in code? I don't understand this as well..
Doesn't even work anymore, don't bother.

Read the post above yours.
Reply
#32

Nice idea though, couldn't we set player's pos to unknown coordinate and then set skin to 9999 so that player will get crashed?
Reply
#33

^^

No you couldn't do that,
If you set player to unknown skin id, it will automatically crash the game.
Close the game, and show the report crash from SA-MP..

I already test this before.

And it went out like i just mention above.
Reply
#34

Sorry for bumping but why this works for me only when I'm in class selection ? Elsewhere it doesnt unban the IP.
Reply
#35

Quote:
Originally Posted by BGTrucker
Посмотреть сообщение
Sorry for bumping but why this works for me only when I'm in class selection ? Elsewhere it doesnt unban the IP.
Quote:
Originally Posted by Drebin
Посмотреть сообщение
Note: Since SA-MP 0.3e R2 this trick does not work anymore (due to the security update).
This doesn't work anymore.
Reply
#36

Quote:
Originally Posted by Ryan_Bowe
Посмотреть сообщение
This doesn't work anymore.
Because this was recently bumped, I'll bump it again.

I don't know why it won't work for other players, but it is still working for me. If you want my code, I'm sure I can dig it up for you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)