Samy Romafia Posted October 1, 2010 Report Share Posted October 1, 2010 new rand=random(3);//Posti Di Spawn switch(rand) { case 0: {SetPlayerCameraLookAt(playerid, -298.381866, 1387.825195, 74.712265); SetPlayerCameraPos(playerid, -298.381866 + (5 * floatsin(-199.599212, degrees)), 1387.825195 + (5 * floatcos(-199.599212, degrees)), 75.712265); } case 1: {SetPlayerCameraLookAt(playerid, -389.000610, 1459.957031, 63.813579); SetPlayerCameraPos(playerid, -389.000610 + (5 * floatsin(-85.893699, degrees)), 1459.957031 + (5 * floatcos(-85.893699, degrees)), 64.813579); } case 2: {SetPlayerPos(playerid,-359.7330,1540.6062,488); } }Cand dau camera imi vine casual vreau sa fie una dupa alta www.dsrclan.forumfree.it Link to comment Share on other sites More sharing options...
IstuntmanI Posted October 1, 2010 Report Share Posted October 1, 2010 Explica mai bine, si cum adica casual ?EDIT: Am inteles (cred) ...foloseste o variabila (sunt mai multe, eh...), sus in script:new CameraVariable[MAX_PLAYERS]; new CameraTimer[MAX_PLAYERS]; forward CameraFunction(playerid); La Comanda sau la ce vrei tu pui: CameraTimer[playerid]=SetTimerEx("CameraFunction", interval_la_care_sa_se_schimbe_camera, 1, "i", playerid); Undeva in script: public CameraFunction(playerid) { if(CameraVariable[playerid]==0) { SetPlayerCameraLookAt(playerid, -298.381866, 1387.825195, 74.712265); SetPlayerCameraPos(playerid, -298.381866 + (5 * floatsin(-199.599212, degrees)), 1387.825195 + (5 * floatcos(-199.599212, degrees)), 75.712265); CameraVariable[playerid]=1; } else if(CameraVariable[playerid]==1) { SetPlayerCameraLookAt(playerid, -389.000610, 1459.957031, 63.813579); SetPlayerCameraPos(playerid, -389.000610 + (5 * floatsin(-85.893699, degrees)), 1459.957031 + (5 * floatcos(-85.893699, degrees)), 64.813579); CameraVariable[playerid]=2; } else if(CameraVariable[playerid]==2) { SetPlayerPos(playerid,-359.7330,1540.6062,488); SetCameraBehindPlayer(playerid); CameraVariable[playerid]=0; KillTimer(CameraTimer[playerid]); } } Link to comment Share on other sites More sharing options...
Samy Romafia Posted October 1, 2010 Author Report Share Posted October 1, 2010 Chiar cand esplic eu numa eu inteleg.....Adica acolo in scriptul ala nu imi da camerele una dupa alta. vreau sa le dea una dupa alta www.dsrclan.forumfree.it Link to comment Share on other sites More sharing options...
IstuntmanI Posted October 1, 2010 Report Share Posted October 1, 2010 Chiar cand esplic eu numa eu inteleg.....da :]]Adica acolo in scriptul ala nu imi da camerele una dupa alta. vreau sa le dea una dupa altaasta face asta, daca setezi interval_la_care_sa_se_schimbe_camera mai putin, de exemplu la 20, le da una dupa alta, banuiesc ca vrei sa folosesti asta la incarcarea unei mape :D Link to comment Share on other sites More sharing options...
Samy Romafia Posted October 1, 2010 Author Report Share Posted October 1, 2010 stuntman-=!!" post="42299" timestamp="1285956620"]da :]]asta face asta, daca setezi interval_la_care_sa_se_schimbe_camera mai putin, de exemplu la 20, le da una dupa alta, banuiesc ca vrei sa folosesti asta la incarcarea unei mape PAi.... vroiam sa fac asta principal si dupaia sa pun ku key dar numa ca nu se schiba in ordine www.dsrclan.forumfree.it Link to comment Share on other sites More sharing options...
Question
Samy Romafia
Cand dau camera imi vine casual vreau sa fie una dupa alta
www.dsrclan.forumfree.it
Link to comment
Share on other sites
4 answers to this question
Recommended Posts