Как убрать << >> spawn, чтобы использовать SetPlayerCameraPos
#5

Я делал так:

В OnPlayerRequestClass
pawn Код:
// hide class selection buttons
TogglePlayerSpectating(playerid, 1);
SetSpawnInfo(playerid, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);

// set camera pos
SetTimerEx("pl_spawn_UpdateCamera", 200, 0, "d", playerid);
pawn Код:
forward pl_spawn_UpdateCamera(playerid);
public pl_spawn_UpdateCamera(playerid)
{
    new camera_id = random( sizeof(camera_PlaceArray) );
    SetPlayerInterior(playerid, camera_PlaceArray[camera_id][camera_Interior]);
    SetPlayerCameraPos(playerid, camera_PlaceArray[camera_id][camera_pos_X], camera_PlaceArray[camera_id][camera_pos_Y], camera_PlaceArray[camera_id][camera_pos_Z]);
    SetPlayerCameraLookAt(playerid, camera_PlaceArray[camera_id][camera_look_X], camera_PlaceArray[camera_id][camera_look_Y], camera_PlaceArray[camera_id][camera_look_Z]);
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)