[Tutorial] force a player to reconnect
#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


Messages In This Thread
force a player to reconnect - by JernejL - 22.09.2010, 21:01
Re: force a player to reconnect - by [L3th4l] - 22.09.2010, 21:58
Re: force a player to reconnect - by Steven82 - 22.09.2010, 21:59
Re: force a player to reconnect - by Jantjuh - 23.09.2010, 05:23
Re: force a player to reconnect - by Hiddos - 23.09.2010, 12:36
Re: force a player to reconnect - by Mikkel_Pedersen - 24.09.2010, 13:04
Re: force a player to reconnect - by Kyosaur - 24.09.2010, 13:28
Re: force a player to reconnect - by Hijolion - 25.09.2010, 03:40
Re: force a player to reconnect - by Kwarde - 25.09.2010, 05:40
Respuesta: force a player to reconnect - by MrDeath537 - 27.09.2010, 22:39
Re: force a player to reconnect - by Calgon - 27.09.2010, 23:09
Re: force a player to reconnect - by cyber_punk - 28.09.2010, 01:32
Re: force a player to reconnect - by Tenshi - 10.01.2011, 19:32
Re: force a player to reconnect - by cessil - 11.01.2011, 03:52
Re: force a player to reconnect - by JernejL - 24.02.2011, 10:56
Re: force a player to reconnect - by Biesmen - 24.02.2011, 12:27
Re: force a player to reconnect - by black_dota - 24.02.2011, 16:14
Re: force a player to reconnect - by Hiddos - 24.02.2011, 16:41
Re: force a player to reconnect - by Mean - 24.02.2011, 17:04
Re: force a player to reconnect - by [03]Garsino - 24.02.2011, 17:07
Re: force a player to reconnect - by Mean - 24.02.2011, 17:09
Re: force a player to reconnect - by DarkKillerWithPride<3 - 04.01.2012, 13:12
Re: force a player to reconnect - by aco_SRBIJA - 29.01.2012, 17:39
Re: force a player to reconnect - by [BFK]MetalHead - 30.01.2012, 09:27
Re: force a player to reconnect - by Konstantinos - 30.01.2012, 10:03
AW: force a player to reconnect - by Drebin - 15.07.2012, 13:57
Re: force a player to reconnect - by [MM]RoXoR[FS] - 16.07.2012, 04:04
Re: force a player to reconnect - by Kirollos - 20.07.2012, 20:54
Re: force a player to reconnect - by JaKe Elite - 21.07.2012, 01:42
Re: force a player to reconnect - by Mr.R - 24.07.2012, 15:34
Re: force a player to reconnect - by Kindred - 24.07.2012, 16:16
Re: force a player to reconnect - by Lordzy - 23.10.2012, 06:22
Re: force a player to reconnect - by JaKe Elite - 23.10.2012, 07:16
Re: force a player to reconnect - by BGTrucker - 10.05.2015, 07:41
Re: force a player to reconnect - by Ryan_Bowe - 10.05.2015, 16:22
Re: force a player to reconnect - by XXCrazyMan707XX - 24.06.2015, 11:08

Forum Jump:


Users browsing this thread: 7 Guest(s)