>> Gates at National Guard (NG) <<
#2

You should first create the gate where you want it, create the object.
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.");
}
Reply


Messages In This Thread
>> Gates at National Guard (NG) << - by monster010 - 17.06.2009, 10:47
Re: >> Gates at National Guard (NG) << - by MenaceX^ - 17.06.2009, 11:14
Re: >> Gates at National Guard (NG) << - by monster010 - 17.06.2009, 14:29
Re: >> Gates at National Guard (NG) << - by MenaceX^ - 17.06.2009, 14:31

Forum Jump:


Users browsing this thread: 1 Guest(s)