18.05.2010, 18:31
i want to make a dialog to ask to register and login is the start of the server. i dont how to start so pls help.
i have a register system on the gm.
i have a register system on the gm.
login(playerid,password) { // code... return 1; }
if(!fexist(file))
{
format(string, sizeof string, "Welcome %s \nPlease Register you account!", name);
ShowPlayerDialog(playerid, Register, DIALOG_STYLE_MSGBOX, "Account", string, "Register", "Cancel.");
}
if(fexist(file))
{
GetPlayerName(playerid, PlayerName, sizeof PlayerName);
format(string, sizeof string, "Please Login to your account!", PlayerName);
ShowPlayerDialog(playerid, Login, DIALOG_STYLE_INPUT, "Account", string, "Login", "Cancel.");
return 0;
}