17.06.2009, 11:14
You should first create the gate where you want it, create the object.
Then you can do it with OnPlayerKeyStateChange
like
Then you can do it with OnPlayerKeyStateChange
like
pawn Код:
if(newkeys==KEY_HANDBRAKE&&IsPlayerInAnyVehicle(playerid)&&GetVehicleModel(GetPlayerVehicleID(playerid))==471) // not sure about the model id
{
MoveObject(yourobject,newX,newY,newZ);
SendClientMessage(playerid,color,"You used the horn and opened the gate.");
}

