SpawnPlayer
#1

I just got back into scripting and I've run into the same problem that I have faced in the past, but I can't remember how (if ever) I fixed it.

For some reason when I use SpawnPlayer(playerid); it never works.

For example, on my login dialog once they log in they are supposed to be spawned. So I load all of their information, etc.. and then at the end I put "SpawnPlayer(playerid); and it does not spawn me, it's like nothing happens when it is supposed to spawn me.

Any ideas?
Reply
#2

Have you tried with SetSpawnInfo().
You can always try to print something and see it SpawnPlayer() even gets called.
Reply
#3

Quote:
Originally Posted by xRyder
Посмотреть сообщение
Have you tried with SetSpawnInfo().
You can always try to print something and see it SpawnPlayer() even gets called.
I tried SetSpawnInfo and it did spawn the player but for some reason the camera is stuck, but you can move the player around. Is this normal and how do I fix it?
Reply
#4

Hmm, try with SetCameraBehindPlayer() after spawning the player.
Reply
#5

No, no, just return 0 in OnPlayerRequestClass, should work, and yeah you must use SetSpawnInfo.
pawn Код:
public OnPlayerRequestClass( playerid, classid ) {
    return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)