30.12.2015, 22:45
MYBAD
ArmyGate0 = CreateObject(19447,2763.120,-2382.116,13.958,0.000,0.000,91.599,-1,-1,-1,300.000,300.000); SetObjectMaterial(ArmyGate0, 0, 10850, "bakerybit2_sfse", "GB_truckdepot29", 0x00000000); CMD:opengate(playerid,params[]) { #pragma unused params if(IsPlayerInRangeOfPoint(playerid,4.0, 2763.120,-2382.116,13.958)) //army { MoveObject(ArmyGate0,2763.159,-2380.486,15.844,0.000,89.400,91.800,1.00); } return 1; }
Try This :
Код:
ArmyGate0 = CreateObject(19447,2763.120,-2382.116,13.958,0.000,0.000,91.599,-1,-1,-1,300.000,300.000); SetObjectMaterial(ArmyGate0, 0, 10850, "bakerybit2_sfse", "GB_truckdepot29", 0x00000000); CMD:opengate(playerid,params[]) { #pragma unused params if(IsPlayerInRangeOfPoint(playerid,4.0, 2763.120,-2382.116,13.958)) //army { MoveObject(ArmyGate0,2763.159,-2380.486,15.844,0.000,89.400,91.800,1.00); } return 1; } |