Fly into the sky
#1

Hey guy's,

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



Can someone help me?
Reply
#2

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

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

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; }
Reply
#5

Toggle the spectating mode off.
Reply
#6

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

/close
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)