SA-MP Forums Archive
Need help with teams class ! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need help with teams class ! (/showthread.php?tid=467718)



Need help with teams class ! - boomerboom - 04.10.2013

My problem is that camera looks so high but it needs to be lower.Can anybody help me?
Here's the code.
Код:
    }
    else if(classid == 6)
    {
        gTeam[playerid] = TEAM_test;
        GameTextForPlayer(playerid,"~b~Tropical Island Guardians",3000,5);
        SetPlayerPos(playerid, 3112.4717,-1500.7024,191.9964);
        SetPlayerFacingAngle(playerid, 191.9964);
        SetPlayerCameraLookAt(playerid, 1987.2367, -1113.7439, 35.1636445);
        SetPlayerCameraPos(playerid,3084.0261,-1527.0895,29.0488);
        SetPlayerColor(playerid,0xFF0000AA);
        ApplyAnimation(playerid,"GYMNASIUM", "GYMshadowbox", 1.800001, 1, 0, 0, 1, 600);

    }
    else if(classid == 7)
    {
        gTeam[playerid] = TEAM_test;
        GameTextForPlayer(playerid,"~b~Tropical Island Guardians",3000,5);
        SetPlayerPos(playerid, 3084.0261,-1527.0895,29.0488);
        SetPlayerFacingAngle(playerid, 29.0488);
        SetPlayerCameraLookAt(playerid, 3084.0261,-1527.0895,29.0488);
        SetPlayerCameraPos(playerid,3084.0261,-1527.0895,29.0488);
        SetPlayerColor(playerid,0x0000BBAA);
        ApplyAnimation(playerid,"DANCING","DAN_Right_A",4.0,1,0,0,0,0);



Re: Need help with teams class ! - boomerboom - 04.10.2013

bump -______-


Re: Need help with teams class ! - EiresJason - 04.10.2013

On each of these lines:
pawn Код:
SetPlayerCameraPos(playerid,3084.0261,-1527.0895,29.0488);
The 29.0488 is the height. Experiment by changing that value until you are happy with it.