Kicking Player because they didn't logon to the game. - 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)
+--- Thread: Kicking Player because they didn't logon to the game. (
/showthread.php?tid=661173)
Kicking Player because they didn't logon to the game. -
xRadical3 - 25.11.2018
When a player cannot to logon the server
All other players are kicked from the server
How to fix this?
Code:
Kicking (IP) because they didn't logon to the game.
Re: Kicking Player because they didn't logon to the game. -
Mike861 - 25.11.2018
Show code
Re: Kicking Player because they didn't logon to the game. -
g1venchy - 25.11.2018
bad code
Re: Kicking Player because they didn't logon to the game. -
J0sh... - 25.11.2018
Quote:
Originally Posted by g1venchy
bad code
|
codestyle do you even know what you're talking about
Re: Kicking Player because they didn't logon to the game. -
Dayrion - 25.11.2018
Probably an infinite loop occurs.
Re: Kicking Player because they didn't logon to the game. -
vikoo - 26.11.2018
You can find code similar to this
Code:
public KickTimer(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][LoggedIn] == 0)
{
SendClientMessage(playerid,COLOR_BRIGHTRED, "You have been kicked from the server for Login Timeout!");
new kickmess[128];
format(kickmess,sizeof(kickmess),"%s was kicked from the server. Reason: Login Timeout!",PlayerInfo[playerid][name]);
SendClientMessage(playerid,COLOR_BRIGHTRED,kickmess);
Kick(playerid);
}
}
}
public FixTimer(playerid)
{
if(IsPlayerConnected(playerid))
{
afixcars(playerid);
afixhs(playerid);
afixbizs(playerid);
}
}
if you found it, delete it