11.03.2012, 17:04
(
Last edited by Bect; 12/03/2012 at 02:47 PM.
)
Code:
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys) { if(newkeys&KEY_CROUCH) { if(IsPlayerInRangeOfPoint(playerid,5.0,477.25,-1317.91,15.27)) { MoveObject(barierawd1,477.1512,-1317.9750,15.2730,20,0.0000,0.0000,35.5438); SetTimer("CloseBarrierwd1",5000,0); return 1; } if(IsPlayerInRangeOfPoint(playerid,5.0,438.91,-1344.35,14.97)) { MoveObject(barierawd2,438.8107,-1344.3813,14.9669,20,0.0000,0.0000,31.5725); SetTimer("CloseBarrierwd2",5000,0); return 1; } } return 1; }