Is there a way to remove the spawn button without spectating? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Is there a way to remove the spawn button without spectating? (
/showthread.php?tid=266229)
Is there a way to remove the spawn button without spectating? -
Snoozy1337 - 04.07.2011
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.
Re: Is there a way to remove the spawn button without spectating? -
Cyanide - 04.07.2011
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)
Re: Is there a way to remove the spawn button without spectating? -
=WoR=Varth - 04.07.2011
What about
:
pawn Код:
SetCameraBehindPlayer(playerid);
Re: Is there a way to remove the spawn button without spectating? -
Snoozy1337 - 04.07.2011
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)
Re: Is there a way to remove the spawn button without spectating? -
Cyanide - 04.07.2011
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.
Re: Is there a way to remove the spawn button without spectating? -
Snoozy1337 - 04.07.2011
Surprisingly that worked thank you so much