27.08.2010, 11:40
How to add a key to a command?
like i press H to open a gate
like i press H to open a gate
This forum requires that you wait 120 seconds between posts. Please try again in 16 seconds.
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{
if(IsPlayerInAnyVehicleID(playerid)
{
if(newkeys & KEY_CROUCH) // key_crouch is the define for H in vehicle.
{
MoveObject(Gate.etc.etc.);
return 1;
}
}
}
pawn Код:
|