SA-MP Forums Archive
Enter Buildings - 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)
+--- Thread: Enter Buildings (/showthread.php?tid=367483)



Enter Buildings - Zex Tan - 10.08.2012

Can I use the F key instead of typing /enter ?


Re: Enter Buildings - [KHK]Khalid - 10.08.2012

Could be scripted. All you have to do is detecting when a player presses F ('KEY_SECONDARY_ATTACK' I guess) using OnPlayerKeyStateChange then check if he is in the range of that building using IsPlayerInRangeOfPoint then set their interior, position, etc depending on the building.


Respuesta: Enter Buildings - ThePhenix - 10.08.2012

But you can change the key, also.

You can add keys to new functions.


Re: Enter Buildings - vexer1234 - 10.08.2012

You can add keys like,

pawn Код:
'KEY_LEFT_ALT'
'KEY_CROUCH'
'KEY_Y'