18.03.2016, 21:49
Hey guys, I'm a newbie and I want to learn scripting.
When you join the server, when you choose a place to spawn, my camera is stuck at SF Airport entrance. I wanted to make it in such a way so you can see the spawn front when you select the spawn. But I want to do it only when you enter the first time.
It looks like this(no hate please):
Help me please. And thank you for taking time to read this.
When you join the server, when you choose a place to spawn, my camera is stuck at SF Airport entrance. I wanted to make it in such a way so you can see the spawn front when you select the spawn. But I want to do it only when you enter the first time.
It looks like this(no hate please):
Код:
public OnGameModeInit() { SetGameModeText("Greenhouse Alpha"); AddPlayerClass(73,1742.8574,-1863.2854,13.5753,1.1759,0,0,0,0,0,0); AddPlayerClass(73,1641.5229,-2335.4905,13.5469,1.5780,0,0,0,0,0,0); AddPlayerClass(73,2846.1714,1290.8066,11.3906,91.5705,0,0,0,0,0,0); AddPlayerClass(73,1673.0715,1448.0216,10.7865,262.8032,0,0,0,0,0,0); AddPlayerClass(73,-1971.6201,137.7008,27.6875,90.5147,0,0,0,0,0,0); AddPlayerClass(73,-1422.9023,-287.9983,14.1484,134.4029,0,0,0,0,0,0); return 1; } public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 1742.8574,-1863.2854,13.5753); SetPlayerPos(playerid,1641.5229,-2335.4905,13.5469); SetPlayerPos(playerid,2846.1714,1290.8066,11.3906); SetPlayerPos(playerid,1673.0715,1448.0216,10.7865); SetPlayerPos(playerid,-1971.6201,137.7008,27.6875); SetPlayerPos(playerid,-1422.9023,-287.9983,14.1484); SetPlayerCameraPos(playerid,1742.8574,-1863.2854,13.5753); SetPlayerCameraPos(playerid,1641.5229,-2335.4905,13.5469); SetPlayerCameraPos(playerid,2846.1714,1290.8066,11.3906); SetPlayerCameraPos(playerid,1673.0715,1448.0216,10.7865); SetPlayerCameraPos(playerid,-1971.6201,137.7008,27.6875); SetPlayerCameraPos(playerid,-1422.9023,-287.9983,14.1484); SetPlayerCameraLookAt(playerid,1667.4056,-1843.4114,46.7716); SetPlayerCameraLookAt(playerid,1566.7601,-2317.6809,40.8702); SetPlayerCameraLookAt(playerid,2801.6882,1243.8193,35.1774); SetPlayerCameraLookAt(playerid,1719.0112,1503.6055,38.5153); SetPlayerCameraLookAt(playerid,-1447.9091,-360.9213,39.5183); SetPlayerCameraLookAt(playerid,-2001.5938,109.6307,40.6151); return 1;