13.03.2018, 17:46
So i've been trying to hide the spawn button out of my login screen.I've found some topics about it but none helped me out.For example, if i do
on OnPlayerRequestClass it does disable Spawn Button but the camera position is above Blueberry, what i wanted to do is to have a default camera (Verona Beach one), i tried removing spectate but spawn button is still there and class selection only appears if i press the left or right buttons on it.
OnPlayerRequestClass:
When i remove spectating from OnPlayerRequestClass:
Код:
TogglePlayerSpectating(playerid, 1);
OnPlayerRequestClass:
Код:
SetPlayerClassPosition(playerid) { SetPlayerInterior(playerid,14); SetPlayerFacingAngle(playerid,270.0); PlayerPlaySound(playerid,1186,0.0,0.0,5.0); SetPlayerPos(playerid,258.4893,-41.4008,1002.0234); SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234); SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234); return 1; } public OnPlayerRequestClass(playerid, classid) { if (IsPlayerNPC(playerid)) return 1; if (isconnected[playerid] == 0) { isconnected[playerid] = 1; TogglePlayerSpectating(playerid, 1); SetPlayerColor(playerid, COLOR_PLAYER); SetPlayerVirtualWorld(playerid, 1);