17.11.2011, 05:29
Hi i need heaps of help PLEASE!
See that?
how do i get that Postions [1][0], thing? Here's most of the code.
THANKS
Code:
GetDynamicObjectPos(LSPDGate, Positions[1][0], Positions[1][1], Positions[1][2]);
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; }