13.09.2011, 01:30
Hello guys .. i want to ask ... how i can move an object by using the car Horn ? lets say i want to make a gate and it wont open untill i use my car horn and i am next to it.
if(newkeys == KEY_CROUCH) { if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,-1,"You must be in car"); if(!IsPlayerInRangeOfPoint(playerid, 5.0, x,y,z)) return SendClientMessage(playerid,-1,"Bla bla");//Put coordinates instead of x,y,z MoveDynamicObject(Put name of that what you put before CreateDynamicGate,x,y,z, fast);//Put gate,x,y,z open gate,and fast //Other codes }