17.03.2014, 11:07
same... this is the first gate before i change like above
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 50.0, 1811.00842285, -1798.89355469, 15.43789959)) {
if(FDGateStatus == 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(FDGate1,1811.00854492,-1771.53283691,15.43789959, 3);
MoveDynamicObject(FDGate2,1811.00817871,-1771.53222656,17.54100037, 3);
MoveDynamicObject(FDGate3,1811.00842285,-1778.89355469,15.43789959, 3);
MoveDynamicObject(FDGate4,1811.00817871,-1778.89355469,17.54100037, 3);
MoveDynamicObject(FDGate5,1811.00305176,-1784.99304199,15.43789959, 3);
MoveDynamicObject(FDGate6,1811.00805664,-1784.99218750,17.54100037, 3);
FDGateStatus = 1;
}
else {
format( string, sizeof( string ), "* %s uses their remote to close the gates.", GetPlayerNameEx( playerid ) );
ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
FDGateStatus = 0;
}
}

