22.12.2013, 19:34
why not put that camera movement stuff in side an if statement?
for example, the player connects to your server, you set some var "firstrun = 1" after your camera stuff (or use some already existing var temporary for just that purpose which is more resource friendly)
and once disconnected or spawned, you set it to 0
should look like
ya, well, something like that maybe
you mainly just need 2 make sure that these camera movements take place just once
for example, the player connects to your server, you set some var "firstrun = 1" after your camera stuff (or use some already existing var temporary for just that purpose which is more resource friendly)
and once disconnected or spawned, you set it to 0
should look like
PHP Code:
if(firstrun[playerid] == 1)
{
InterpolateCameraPos(playerid, 1467.488403, -1620.849975, 43.885395, 1481.209350, -1758.466552, 19.101547, 8000);
InterpolateCameraLookAt(playerid, 1468.074707, -1625.690917, 42.779933, 1481.169799, -1763.463745, 18.939575, 8000);
}
you mainly just need 2 make sure that these camera movements take place just once