[Help] spawn after login - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] spawn after login (
/showthread.php?tid=257669)
[Help] spawn after login -
Gintas - 27.05.2011
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
Re: [Help] spawn after login -
Elka_Blazer - 27.05.2011
You gonna have to SetSpawnInfo OnPlayerConnect
Then when the player log's in , you gonna SpawnPlayer him ...
THEN YOU LOAD THE VARIABLES.
Re: [Help] spawn after login -
xDeadlyBoy - 27.05.2011
Re: [Help] spawn after login -
Gintas - 27.05.2011
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.
Re: [Help] spawn after login -
Unknown_Killer - 27.05.2011
remove those from ur script
Код:
SetPlayerCameraPos(playerid, -683.0414,938.6726,13.6328);
SetPlayerCameraLookAt(playerid, -688.0414,938.6726,13.6328);
Re: [Help] spawn after login -
Gintas - 27.05.2011
Thanks
it works now.
Re: [Help] spawn after login -
cs_master - 27.05.2011
PWN CODE
Quote:
OnPlayerRequestSpawn(playerid)
{
if(!loggedin[playerid]) return 0;
return 1;
}
|
but need login cmd