Automaticaly spawn after login
#1

Actualy i have more then 1 question, but i can only choose 1 Title...

Starting of main question:

(SOLVED) 1.) I'm useing Blank MySQL Gamemode by Markx but after register it oredring to "spawn". How can i make it automaticaly spawn without hiting the "Spawn" button below.
Added:
pawn Код:
SetSpawnInfo( playerid, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 );
SpawnPlayer(playerid);
at the end of "stock MySQL_Login(playerid)"

(SOLVED) 2.) I want to clear "<" ">" "Spawn" buttons from login screen. Have seen that many Gamemodes dont have it.

Added
Код:
TogglePlayerSpectating(playerid,1);
Under OnPlayerConnect


3.) How can i send login dialog after player have registed account?
Reply
#2

I'm working on it, wait a bit, please.
Reply
#3

Take ur time
Reply
#4

its very easy, toggleplayerspectating itself on playerspawn,

Then set a timerat a few miliseconds, there Turn toggleplayerspectating to false,
Reply
#5

Sorry, forget this solving.
Reply
#6

Nonameman idk what you actualy changed there, but no new effects in there. Probaly it didnt worked out.
Reply
#7

Quote:
Originally Posted by milanosie
Посмотреть сообщение
its very easy, toggleplayerspectating itself on playerspawn,

Then set a timerat a few miliseconds, there Turn toggleplayerspectating to false,
BUMP:

Can u actualy tell me more how it works and how to set it up?
I got removed Spawn button, but now i need to make it automaticaly spawned somewhere if succefully logged in.
Reply
#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
#9

I put SpawnPlayer() function to the bottom of the script, thought it will spawn the player after login dialog get closed. The other thing I did was on the top of it, I commented out some lines, I thought you want the information dialog (just after login dialog) to be inactive.

Sorry for it, I misunderstood a part of changes you want. :/
Reply
#10

Quote:
Originally Posted by ArmyOps
Посмотреть сообщение
BUMP:

Can u actualy tell me more how it works and how to set it up?
I got removed Spawn button, but now i need to make it automaticaly spawned somewhere if succefully logged in.
OnPlayerRequestClass

SEt a timer for 50 miliseconds there

On the timer callback:

TogglePlayerSpecating playerid true

Set a timer for 5 secodns,


on the callback
toggleplayerspectating playerid false



Now code it urself
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)