Camera Position help please!
#1

I have tried this stuff on several functions like OnPlayerConnect OnPlayerRequestClass and stuff but it just shows the default camera position san andreas have, please help me here is my code and its set on OnPlayerRequestClass right now
pawn Код:
SetPlayerVirtualWorld(playerid, 0);
    SetPlayerPos(playerid, 521.6727, -1426.9231, 15.9609);
    InterpolateCameraPos(playerid, 524.134155, -1411.011596, 33.327163, 524.134155, -1411.011596, 33.327163, 1000);
    InterpolateCameraLookAt(playerid, 521.650695, -1415.331420, 32.913574, 521.650695, -1415.331420, 32.913574, 1000);
    SetPlayerWeather(playerid, 16);
    SetSpawnInfo(playerid, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
 TogglePlayerSpectating(playerid, 1);
Reply
#2

Try putting TogglePlayerSpectating BEFORE you set the camera positions.

EDIT: TogglePlayerSpectating will most likely ruin your Class Selection, so OnPlayerRequestClass is not advised.
Reply
#3

For what i see in your code you want to have a cutscene and then the cutscene to be looking at your player's pos and move to a direction, time set , weather and virtual world , but that TogglePlaySpectating must not be there perhaps if you want to ruin everything, TogglePlayerSpectating is used only if you want to spectate something or someone....

Also SetSpawnInfo will set your coords and skin, ammo , weapons to the countryside, you'll be a cj unarmed in the middle of nowhere

Put that in OnPlayerRequestClass, but delete the
Код:
TogglePlayerSpectating
SetSpawnInfo
Reply
#4

Quote:
Originally Posted by XStormiest
Посмотреть сообщение
TogglePlayerSpectating is used only if you want to spectate something or someone....
No, it can be used to hide the huds too and many use it to hide them and they also use SetSpawnInfo to spawn the player immediately so the buttons:
< SPAWN >
are not shown/able to be selected.
Reply
#5

So there is no fix..?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)