The Best method to hide the "Spawn" button[0.3][and question]
#1

Код:
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....................??
Reply
#2

lol nice.
Reply
#3

Did you test this? lolz?
Reply
#4

tested,and worked nice in my RP GM




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


Forum Jump:


Users browsing this thread: 2 Guest(s)