Is there a way to remove the spawn button without spectating?
#1

I'm wondering if theres a way to remove that spawn button at OnPlayerRequestClass without spectating since I need the players uhm ingame model for the login screen I'm making and I would be despawned with spectating so there would be no model of me ingame.
Reply
#2

I never really thought about ever using that spectating method because I simply spawn the player and set the camera angle. In your case, you would need to use the function SpawnPlayer, and set the player camera at the player's spawn. (SetPlayerCameraPos, SetPlayerCameraLookAt)
Reply
#3

What about:
pawn Код:
SetCameraBehindPlayer(playerid);
Reply
#4

I've tried that like SpawnPlayer(playerid); on top of the public OnPlayerRequestClass()
And it doens't really do anything tbh. Can it be cause I got code under it tho? That's what I'm wondering since my login stuff and some other stuff is under the SpawnPlayer(playerid)
Reply
#5

Quote:
Originally Posted by varthshenon
Посмотреть сообщение
What about:
pawn Код:
SetCameraBehindPlayer(playerid);
That wouldn't work.

Quote:
Originally Posted by Snoozy1337
Посмотреть сообщение
I've tried that like SpawnPlayer(playerid); on top of the public OnPlayerRequestClass()
And it doens't really do anything tbh. Can it be cause I got code under it tho? That's what I'm wondering since my login stuff and some other stuff is under the SpawnPlayer(playerid)
Try using SetSpawnInfo before SpawnPlayer is called.
Reply
#6

Surprisingly that worked thank you so much
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)