What is wrong with this ?
#1

OnPlayerConnect
Код:
	if(AccountExists[playerid] == 1)
    {
	if(PlayerInfo[playerid][pAdmin] > 0) {
	SendClientMessage(playerid, COLOR_YELLOW, "[Note]: You have 20 seconds, to login."); SetTimerEx("LogiSisse", 20000, false, "i", playerid);
	}
	else {
	SendClientMessage(playerid, COLOR_YELLOW, "This account is registred, please login. [/login]"); }
	ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "Login", "Please insert password to login", "Login", "Cancel");
	}
   	else
	{
	SendClientMessage(playerid, COLOR_YELLOW, "This account isn't registred, please register. [/register]");
	ShowPlayerDialog(playerid, REGISTER, DIALOG_STYLE_INPUT, "Register", "Please insert password to register an account", "Register", "Cancel");
	}
	return 1;
}
Код:
public LogiSisse(playerid)
{
	if(PlayerInfo[playerid][pAdmin] > 0 && PlayerInfo[playerid][pLogged] == 0) {
	    Kick(playerid);
	}
	return true;
}
Reply
#2

You could ofcourse just tell us what the error is -.-
Reply
#3

There are no errors, it just doesnt send that note and doesnt kick.
Reply
#4

bUMP MY POST
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)