Jump to content
  • 0

Casual?


Samy Romafia

Question

    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

senzaolo1xv.png

www.dsrclan.forumfree.it

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

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

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 alta

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 :D

Link to comment
Share on other sites

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 :D

PAi.... vroiam sa fac asta principal si dupaia sa pun ku key dar numa ca nu se schiba in ordine

senzaolo1xv.png

www.dsrclan.forumfree.it

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.