Re: force a player to reconnect -
Mean - 24.02.2011
Knew about SendRconCommand, but didn't know what is the cmd to unban da IP in RCON. Thank you.
Re: force a player to reconnect -
DarkKillerWithPride<3 - 04.01.2012
EDIT:nvm ^^ says it all
Re: force a player to reconnect -
aco_SRBIJA - 29.01.2012
The cessil code doesen't work...It says You're banned, but you can re join and everything gonna be okay...
Re: force a player to reconnect -
[BFK]MetalHead - 30.01.2012
Thanks man.really thanks.i really needed this.
Re: force a player to reconnect -
Konstantinos - 30.01.2012
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.
AW: force a player to reconnect -
Drebin - 15.07.2012
Note: Since SA-MP 0.3e R2 this trick does not work anymore (due to the security update).
Re: force a player to reconnect -
[MM]RoXoR[FS] - 16.07.2012
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 .
Re: force a player to reconnect -
Kirollos - 20.07.2012
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).
|
Re: force a player to reconnect -
JaKe Elite - 21.07.2012
Trick doesn't work anymore.
Due to new security updates.
Re: force a player to reconnect -
Mr.R - 24.07.2012
Any example in code? I don't understand this as well..
Re: force a player to reconnect -
Kindred - 24.07.2012
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.
Re: force a player to reconnect -
Lordzy - 23.10.2012
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?
Re: force a player to reconnect -
JaKe Elite - 23.10.2012
^^
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.
Re: force a player to reconnect -
BGTrucker - 10.05.2015
Sorry for bumping but why this works for me only when I'm in class selection ? Elsewhere it doesnt unban the IP.
Re: force a player to reconnect -
Ryan_Bowe - 10.05.2015
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.
Re: force a player to reconnect -
XXCrazyMan707XX - 24.06.2015
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.