Automaticaly spawn after login
#8

To have a 'login screen' do like so:

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    TogglePlayerSpectating(playerid, true);
    SetTimerEx("login_cam_timer", 100, 0, "i", playerid);
    return 1;
}

forward login_cam_timer(playerid);
public login_cam_timer(playerid)
{
    // Set the camera.
    SetPlayerCameraPos(playerid, x, y, z);
    SetPlayerCameraLookAt(playerid, x, y, z);
   
    // Show dialogs HERE. Not before, not after.

    return 1;
}

// On login:
TogglePlayerSpectating(playerid, false);
Reply


Messages In This Thread
Automaticaly spawn after login - by ArmyOps - 08.02.2012, 17:00
Re: Automaticaly spawn after login - by Nonameman - 08.02.2012, 17:03
Re: Automaticaly spawn after login - by ArmyOps - 08.02.2012, 17:04
Re: Automaticaly spawn after login - by milanosie - 08.02.2012, 17:07
Re: Automaticaly spawn after login - by Nonameman - 08.02.2012, 17:14
Re: Automaticaly spawn after login - by ArmyOps - 08.02.2012, 17:19
Re: Automaticaly spawn after login - by ArmyOps - 08.02.2012, 18:24
Re: Automaticaly spawn after login - by MP2 - 08.02.2012, 19:20
Re: Automaticaly spawn after login - by Nonameman - 08.02.2012, 19:23
Re: Automaticaly spawn after login - by milanosie - 08.02.2012, 19:46

Forum Jump:


Users browsing this thread: 1 Guest(s)