Trying to think of a suitable key
#1

for the gate, it will open on a key, but what key will work both in a vehicle and out of it :/
Reply
#2

Код:
KEY_JUMP
Works both in car and out
Reply
#3

Quote:
Originally Posted by Torran
Код:
KEY_JUMP
Works both in car and out
tyvm torran, gold cookie for you
Reply
#4

Quote:
Originally Posted by Torran
Код:
KEY_JUMP
Works both in car and out
wth it only works on foot
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (HOLDING(KEY_JUMP))
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 213.8026,1876.0151,13.1406))
{
MoveObject(fronthqgate, 226.2012,1875.1792,13.8000, 2.00);
}
return 1;
}
if (RELEASED(KEY_JUMP))
{
MoveObject(fronthqgate, 214.2012,1875.1792,13.8000, 2.00);
}
return 1;
}
Reply
#5

It dosent, It works in a car too, I use it on my engine system
Reply
#6

Quote:
Originally Posted by Torran
It dosent, It works in a car too, I use it on my engine system
KEY jump in a vehicle is s (make the car go backwards)
Reply
#7

Look at my engine system ...
Reply
#8

Quote:
Originally Posted by Torran
Look at my engine system ...
irelivent
Reply
#9

Quote:
Originally Posted by braduz
Quote:
Originally Posted by Torran
Look at my engine system ...
irelivent
If you look at my engine system, You will find that KEY_JUMP works in the car, And if u download the engine system,
Get in a car, And press S, you will see tht nothing happens
Reply
#10

KEY_HORN ( When you horn inside the car the gate will open , That's realistic. ) , When you're outside you need to press Crouch key.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)