22.06.2016, 18:41 
	
	
	
		Hello. I have a register system using Y_INI systems. It works fine, but if you connect with raksamp the dialogs sometimes don't show up, and therefore you can type in the raksamp chat without being logged in.
I have tried to make a function so you cannot type in until your INI data has been loaded, but I don't know how to phrase it other than like this:
gPlayer_Logged[MAX_PLAYERS] is a global variable.
	
	
	
	
I have tried to make a function so you cannot type in until your INI data has been loaded, but I don't know how to phrase it other than like this:
Код:
public OnPlayerConnect(playerid)
{	
   gPlayer_Logged[playerid] = 0;
   {
	if(!LoadUser_data)
		{
			SCM(pid, -1, "You are not logged in.");
			return 1;
		}
	}





