SA-MP Forums Archive
Trying to think of a suitable key - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Trying to think of a suitable key (/showthread.php?tid=125791)



Trying to think of a suitable key - braduz - 05.02.2010

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


Re: Trying to think of a suitable key - Torran - 05.02.2010

Код:
KEY_JUMP
Works both in car and out


Re: Trying to think of a suitable key - braduz - 05.02.2010

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


Re: Trying to think of a suitable key - braduz - 05.02.2010

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;
}


Re: Trying to think of a suitable key - Torran - 05.02.2010

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


Re: Trying to think of a suitable key - braduz - 05.02.2010

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)


Re: Trying to think of a suitable key - Torran - 05.02.2010

Look at my engine system ...


Re: Trying to think of a suitable key - braduz - 05.02.2010

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



Re: Trying to think of a suitable key - Torran - 05.02.2010

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


Re: Trying to think of a suitable key - Julian2574 - 05.02.2010

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.