Jump to content
  • 0

Dialog login - LuxAdmin.


Deejaybwg

Question

Dialogul de login din LuxAdmin, de ce nu poate fi mutat de la OnPlayerRequestSpawn la OnPlayerConnect ?

Dialogul :

	// Request Login
	if(ServerInfo[MustLogin] == 1 && AccInfo[playerid][Registered] == 1 && AccInfo[playerid][LoggedIn] == 0 && (!IsPlayerNPC(playerid))){
 	SendClientMessage(playerid,lightred,"{FFAF00}Server:{FFFFFF} Esti inregistrat. Te rog logheaza-te. {FFAF00} | /"#LoginCommand" [Password]");
	return 0;
	}
	#endif
	return 1;
	}
Si toata functia :
public OnPlayerRequestSpawn(playerid)
{
	// Request Register
	#if USE_DIALOGS == false
	if(AccInfo[playerid][Registered] == 0 && ServerInfo[MustRegister] == 1 && (!IsPlayerNPC(playerid))){
	SendClientMessage(playerid,lightred,"{FFAF00}Server: {FFFFFF}Nu esti inregistrat. Te rog inregistreaza-te. {FFAF00} | /"#RegisterCommand" [Password]");
	return 0;
	}
	// Request Login
	if(ServerInfo[MustLogin] == 1 && AccInfo[playerid][Registered] == 1 && AccInfo[playerid][LoggedIn] == 0 && (!IsPlayerNPC(playerid))){
 	SendClientMessage(playerid,lightred,"{FFAF00}Server:{FFFFFF}Esti inregistrat. Te rog logheaza-te. {FFAF00} | /"#LoginCommand" [Password]");
	return 0;
	}
	#endif
	return 1;
	}

Am incercat sa mut si dialogul Register, dar degeaba, tot imi da multe erori.

www.youtube.com/thebwgg

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.