[Help] spawn after login
#1

Hi, my problem is i can't find out how to skip class slection menu if player is already registered and logs in.
I tried adding TogglePlayerSpectating(playerid, 1); SpawnPlayer(playerid); and everything else that i could find in samp forums or in wiki.
But whatever i do it just doesn't work. I still get to choose my skin.
Here is the GM (without my tryings to spawn).
Hope someone can help me
Reply
#2

You gonna have to SetSpawnInfo OnPlayerConnect
Then when the player log's in , you gonna SpawnPlayer him ...
THEN YOU LOAD THE VARIABLES.
Reply
#3

pawn Код:
SpawnPlayer(playerid);
Reply
#4

xDeadlyBoy: Learn to read.
Elka_Blazer: Thanks ,but when i spawn, all i can see is this.

and i can see how my palyer moves in the minimap but this view doesnt change.
Reply
#5

remove those from ur script

Код:
SetPlayerCameraPos(playerid, -683.0414,938.6726,13.6328);
  SetPlayerCameraLookAt(playerid, -688.0414,938.6726,13.6328);
Reply
#6

Thanks it works now.
Reply
#7

PWN CODE
Quote:

OnPlayerRequestSpawn(playerid)
{
if(!loggedin[playerid]) return 0;
return 1;
}

but need login cmd
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)