Make the player spawn after logging in, without hitting "Spawn" - 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)
+--- Thread: Make the player spawn after logging in, without hitting "Spawn" (
/showthread.php?tid=419637)
Make the player spawn after logging in, without hitting "Spawn" -
Dubya - 01.03.2013
SO I want to set it to where after you login/register successfully, you instantly spawn where you would. No need for the "Spawn" button, I just want the player to spawn where they normally would. I've tried using SpawnPlayer(), but the "Spawn" button still appears, and you have to click it to spawn.
Re: Make the player spawn after logging in, without hitting "Spawn" - Patrick - 01.03.2013
try to this example if it will work.
pawn Код:
if(dialogid == DIALOG_LOGIN)//your login dialog
{
if(response == 0)//no response
{
//Your Message here
}
if(response == 1)//password has entered correctly and ready to spawn!
{
//Loads all account information
SpawnPlayer(playerid);//spawns a player directly
}
return 1;
}
Re: Make the player spawn after logging in, without hitting "Spawn" -
SilverKiller - 01.03.2013
Use
SetSpawnInfo With
SpawnPlayer
Re: Make the player spawn after logging in, without hitting "Spawn" -
Milangames - 17.01.2018
where to put the code
Re: Make the player spawn after logging in, without hitting "Spawn" -
jasperschellekens - 17.01.2018
Is there ForceClassSelection in ur script? Remove it and replace with SpawnPlayer or something