SA-MP Forums Archive
Spawn gumb | SpawnPlayer - 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: Spawn gumb | SpawnPlayer (/showthread.php?tid=591089)



Spawn gumb | SpawnPlayer - xClown - 08.10.2015

Hi, i put this code when player connect.
PHP код:
if(fexist(Path(playerid)))
{
    
INI_ParseFile(Path(playerid),"LoadUser_%s", .bExtra true, .extra playerid);
    
SpawnPlayer(playerid);
    
SetPlayerCameraPos(playerid1057.17351990.9702, -7.6063);
    
SetPlayerCameraLookAt(playerid7107.6938, -9996.5226, -2.9223);
    
ShowPlayerDialog(...
}
else
{
    
SpawnPlayer(playerid);
    
SetPlayerCameraPos(playerid1990.9702, -1760.355646.0171);
    
SetPlayerCameraLookAt(playerid7107.6938, -1758.893718.0859);
    for(new 
010i++) TextDrawShowForPlayer(playeridRegisterLoginTD[i]);
    
SelectTextDraw(playerid0x800000FF);
    return 
1

SpawnPlayer and Camera doesn't work. I use SpawnPlayer to hide spawn buttons, and Camera for new positions.



Re: Spawn gumb | SpawnPlayer - xClown - 08.10.2015

Ok, i fix spawn gumb with "noclass" include. But Camera doesn't work


Re: Spawn gumb | SpawnPlayer - PrO.GameR - 08.10.2015

You can't spawn a player and change his camera after it, you probably need to put player on spectator mode somewhere higher I guess for the camera commands to work


Re: Spawn gumb | SpawnPlayer - xClown - 08.10.2015

I'm now on mobile, but when I back to home, I test this what are you say.
But, can you explain better what you mean exactly? Thanks :-*

My English is bad, do you understand what I saying? :/