Unloading problem!
#8

Add something like this.

Код:
public OnPlayerConnect(playerid)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    if(fexist(Path(playerid)))
    {
        INI_ParseFile(Path(playerid),"loadaccount_user", .bExtra = true, .extra = playerid);
		ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login","Welcome back. This account is registered. \nInsert your password to login to your account","Login","Quit");
		SendClientMessage(playerid, COLOR_YELLOW, "Welcome back to Blood Zone. We hope you will enjoy your stay!");
        	if(PlayerInfo[pAdmin] >= 1)
			{
	    		//Add message etc...
			}
			else
			{
				PlayerInfo[playerid][pAdmin] = 0;
			}
	}
    else
    {
        ShowPlayerDialog(playerid,DIALOG_REG,DIALOG_STYLE_INPUT,"Register","Welcome! This account is not registered.\nEnter your own password to create a new account.","Register","Quit");
		return 1;
  	}
Reply


Messages In This Thread
Unloading problem! - by lQs - 12.05.2013, 19:55
AW: Unloading problem! - by HurtLocker - 12.05.2013, 19:58
Re: Unloading problem! - by lQs - 12.05.2013, 20:03
AW: Unloading problem! - by HurtLocker - 12.05.2013, 20:06
Re: Unloading problem! - by lQs - 12.05.2013, 20:08
Re: Unloading problem! - by Goldilox - 12.05.2013, 20:44
Re: Unloading problem! - by lQs - 12.05.2013, 20:47
Re: Unloading problem! - by Pawnie - 12.05.2013, 21:04
Re: Unloading problem! - by lQs - 12.05.2013, 21:17
Re: Unloading problem! - by Chenko - 12.05.2013, 21:52

Forum Jump:


Users browsing this thread: 2 Guest(s)