How to get dynamic pos?
#1

Hi i need heaps of help PLEASE!
Code:
 GetDynamicObjectPos(LSPDGate, Positions[1][0], Positions[1][1], Positions[1][2]);
See that?
how do i get that Postions [1][0], thing? Here's most of the code.

Code:
CMD:gate(playerid, params[])
{
    new string[128];
    if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || (PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pDivision] == 2) || (PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pRank] >= 5) || PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
	{
        GetPlayerPos( playerid, Positions[0][0], Positions[0][1], Positions[0][2]);
        GetDynamicObjectPos(LSPDGate, Positions[1][0], Positions[1][1], Positions[1][2]);
        GetDynamicObjectPos(LSPDGate2, Positions[4][0], Positions[4][1], Positions[4][2]);
        GetDynamicObjectPos(SFPDGate1, Positions[6][0], Positions[6][1], Positions[6][2]);
        GetDynamicObjectPos(SFPDGate2, Positions[7][0], Positions[7][1], Positions[7][2]);
        GetDynamicObjectPos(SFPDGate3, Positions[8][0], Positions[8][1], Positions[8][2]);
        GetDynamicObjectPos(FBIGate1, Positions[2][0], Positions[2][1], Positions[2][2]);
        GetDynamicObjectPos(FBIGate2, Positions[3][0], Positions[3][1], Positions[3][2]);
        GetDynamicObjectPos(NGGate, Positions[5][0], Positions[5][1], Positions[5][2]);
       	GetDynamicObjectPos(SASDGate1, Positions[9][0], Positions[9][1], Positions[9][2]);
        GetDynamicObjectPos(SASDGate2, Positions[10][0], Positions[10][1], Positions[10][2]);
        GetDynamicObjectPos(SASDGate3, Positions[11][0], Positions[11][1], Positions[11][2]);
        GetDynamicObjectPos(nationalGATE, Positions[12][0], Positions[12][1], Positions[12][2]);
        GetDynamicObjectPos(nationalGATE2, Positions[13][0], Positions[13][1], Positions[13][2]);

        if(IsPlayerInRangeOfPoint(playerid, 8.0, 1379.7907714844, -1678.4444580078, 13.386324882507)) {
            if(COURTGStatus == 0) {
                format( string, sizeof( string ), "* %s uses their remote to open the gates.", GetPlayerNameEx( playerid ) );
                ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                MoveDynamicObject(COURTGate, 1389.12402344,-1679.52185059,12.97999668, 4);
                COURTGStatus = 1;
            }
THANKS
Reply


Messages In This Thread
How to get dynamic pos? - by MS:RP Mason - 17.11.2011, 05:29
Re: How to get dynamic pos? - by General Abe - 17.11.2011, 05:53
Re: How to get dynamic pos? - by MS:RP Mason - 17.11.2011, 06:07
Re: How to get dynamic pos? - by =WoR=G4M3Ov3r - 17.11.2011, 06:51
Re: How to get dynamic pos? - by MS:RP Mason - 17.11.2011, 07:43
Re: How to get dynamic pos? - by =WoR=G4M3Ov3r - 17.11.2011, 07:49
Re: How to get dynamic pos? - by General Abe - 17.11.2011, 11:20
Re: How to get dynamic pos? - by MS:RP Mason - 17.11.2011, 20:51
Re: How to get dynamic pos? - by General Abe - 17.11.2011, 20:54
Re: How to get dynamic pos? - by Luis- - 17.11.2011, 20:55
Re: How to get dynamic pos? - by Alex Valdez - 18.11.2011, 02:22
Re: How to get dynamic pos? - by r0v3r - 28.12.2011, 14:00
Re: How to get dynamic pos? - by Guest9328472398472 - 30.12.2011, 19:07
Re: How to get dynamic pos? - by Elmin - 30.12.2011, 19:14
Re: How to get dynamic pos? - by r0v3r - 13.01.2012, 16:26

Forum Jump:


Users browsing this thread: 1 Guest(s)