SA-MP Forums Archive
The Best method to hide the "Spawn" button[0.3][and question] - 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: The Best method to hide the "Spawn" button[0.3][and question] (/showthread.php?tid=112084)



The Best method to hide the "Spawn" button[0.3][and question] - oicq747285250 - 05.12.2009

Код:
public OnPlayerConnect(playerid)
{
/*-----------------------------------------------------------------------------------*/
---------put on the top of the OnPlayerConnect ----------------
/*-----------------------------------------------------------------------------------*/
    TogglePlayerControllable(playerid,0);//without it the player can be move when Camera Looking.
	TogglePlayerSpectating(playerid, 1);//start the spectating to hide the Spawn button
	TogglePlayerSpectating(playerid, 0);//end the spectating but the Spawn button doesnt appear.
	SetPlayerCameraPos(playerid,~~~,~~~,~~~);//put your camera position
	SetPlayerCameraLookAt(playerid,~~~,~~~,~~~);//put your camera position
/*-------------------------------by me (SAMP-ID:HaTE)-----------------------------------------*/
//...
}
it test when I "gmx" the server,it hided
but i tried restart the server and client
it didnt hided....................??


Re: The Best method to hide the "Spawn" button[0.3] - (Jeff) - 05.12.2009

lol nice.


Re: The Best method to hide the "Spawn" button[0.3] - RyDeR` - 05.12.2009

Did you test this? lolz?


Re: The Best method to hide the "Spawn" button[0.3] - oicq747285250 - 05.12.2009

tested,and worked nice in my RP GM




--nonono.............it not worked when restart client..............only for GMX....