Kicking Player because they didn't logon to the game.
#1

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.
Reply
#2

Show code
Reply
#3

bad code
Reply
#4

Quote:
Originally Posted by g1venchy
View Post
bad code
codestyle do you even know what you're talking about
Reply
#5

Probably an infinite loop occurs.
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)