Disable SPAWN
#10

pawn Код:
public OnPlayerConnect(playerid)
{
    TogglePlayerSpectating(playerid, true);
    ShowPlayerDialog(playerid, iLoginDialog, DIALOG_STYLE_PASSWORD, "Login", string[playerid], "Login", "Quit");
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == iLoginDialog)
    {
        if(response)
        {
            TogglePlayerSpectating(playerid, false);
            return 1;
        }
        else
            ShowPlayerDialog(playerid, iLoginDialog, DIALOG_STYLE_PASSWORD, "Login", string[playerid], "Login", "Cancel");
    }
    return 1;
}
easy as that
Reply


Messages In This Thread
Disable SPAWN - by Healian - 16.08.2012, 01:58
Re: Disable SPAWN - by Kindred - 16.08.2012, 02:00
Re: Disable SPAWN - by tyler12 - 16.08.2012, 02:00
Re: Disable SPAWN - by Healian - 16.08.2012, 02:02
Re: Disable SPAWN - by Healian - 16.08.2012, 02:07
Re: Disable SPAWN - by Kindred - 16.08.2012, 02:10
Re: Disable SPAWN - by Healian - 16.08.2012, 02:13
Re: Disable SPAWN - by Healian - 16.08.2012, 02:37
Re: Disable SPAWN - by _Vortex - 16.08.2012, 07:42
Re: Disable SPAWN - by SEnergy - 16.08.2012, 08:49

Forum Jump:


Users browsing this thread: 1 Guest(s)