Spawn gumb | SpawnPlayer
#1

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.
Reply
#2

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

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
Reply
#4

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? :/
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)