SA-MP Forums Archive
Fly into the sky - 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)
+--- Thread: Fly into the sky (/showthread.php?tid=482683)



Fly into the sky - Vinex - 22.12.2013

Hey guy's,

wehen I spawn, I fly into the sky...



Can someone help me?


Re: Fly into the sky - Ada32 - 22.12.2013

Quote:
Originally Posted by Vinex
Посмотреть сообщение
Can someone help me?
not without any code..


Re: Fly into the sky - doreto - 22.12.2013

wait a second while i go and get my crystal ball.


AW: Fly into the sky - Vinex - 22.12.2013

Oh sry,

Код:
public OnPlayerConnect(playerid)
{
	SetPlayerColor(playerid, COLOR_PLAYER_GREY);
	SetTimerEx("LoginViewTimer", 500, false, "i", playerid);
	return 1;
}

forward LoginViewTimer(playerid);
public LoginViewTimer(playerid) {
	SpawnPlayer(playerid);
	TogglePlayerSpectating(playerid, true);
	InterpolateCameraPos(playerid, 232.7062, -49.0282, 3.7268, 230.1935, -338.5264, 78.9081, 60000, CAMERA_MOVE);
	InterpolateCameraLookAt(playerid, 232.6680, -48.0248, 3.7168, 230.1855, -337.5224, 78.4731, 60000, CAMERA_MOVE);
	CheckAccount(playerid);
	return 1; }
And after the login:

Код:
SpawnPlayer(playerid);
	SetTimerEx("SpawnLoginTimer", 250, false, "i", playerid);

forward SpawnLoginTimer(playerid);
public SpawnLoginTimer(playerid) {
	SetPlayerSkin(playerid, 115);
	SetPlayerPos(playerid, 1554.9198,-1365.9075,329.4535);
	SetCameraBehindPlayer(playerid);
	return 1; }



Re: Fly into the sky - Konstantinos - 22.12.2013

Toggle the spectating mode off.


AW: Fly into the sky - Vinex - 22.12.2013

Oh, thank you so much.
It's working fine.

/close