02.05.2012, 02:20
I set a one second timer, still didn't work.
Do you do the same thing on your mode?
If so, how do you do it?
I'll try the same thing using player objects instead.
EDIT:
Strange, it worked fine if I used player objects?
Here is the code I used.
Do you do the same thing on your mode?
If so, how do you do it?
I'll try the same thing using player objects instead.
EDIT:
Strange, it worked fine if I used player objects?
Here is the code I used.
pawn Код:
new JoinCameraObject[MAX_PLAYERS];
pawn Код:
public OnPlayerConnect(playerid)
{
SetTimerEx("OnPlayerConnectEx", 1000, false, "d", playerid);
return 1;
}
public OnPlayerConnectEx(playerid)
{
SetJoinCamera(playerid);
return 1;
}
pawn Код:
public SetJoinCamera(playerid)
{
TogglePlayerSpectating(playerid, 1);
JoinCameraObject[playerid] = CreatePlayerObject(playerid, 19300, 1510.9978, -883.4820, 63.7863, 0.0, 0.0, 25.0);
AttachCameraToPlayerObject(playerid, JoinCameraObject[playerid]);
return 1;
}