SA-MP Forums Archive
Keys to open faction doors and gates error... - 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: Keys to open faction doors and gates error... (/showthread.php?tid=613599)



Keys to open faction doors and gates error... - Louwwieee42 - 29.07.2016

Hi all,

The gamemode I have says I can use 'H' to open the LSPD gates and 'F' to open the doors... Although it doesn't seem to be working, I have re compiled, I dont know which bit of script to supply so if you need some please just comment and ask...

Regards: Louwwieee42


Re: Keys to open faction doors and gates error... - DeeadPool - 29.07.2016

Can you please show us your script? Then only I can help you.


Re: Keys to open faction doors and gates error... - Louwwieee42 - 29.07.2016

Quote:
Originally Posted by DeeadPool
Посмотреть сообщение
Can you please show us your script? Then only I can help you.
Like I said yes, but which part the whole script?


Re: Keys to open faction doors and gates error... - Logic_ - 29.07.2016

OnPlayerKeyStateChange.


Re: Keys to open faction doors and gates error... - Louwwieee42 - 29.07.2016

Quote:
Originally Posted by ALiScripter
Посмотреть сообщение
OnPlayerKeyStateChange.
Sorry, I didn't know which bit you needed but here you go...

http://pastebin.com/wHstUGdx


Re: Keys to open faction doors and gates error... - Sew_Sumi - 29.07.2016

https://sampwiki.blast.hk/wiki/OnPlayerK...heck_for_a_key

It says in there why you are experiencing this.


It's to do with how you are checking the keys.


Re: Keys to open faction doors and gates error... - Louwwieee42 - 29.07.2016

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/OnPlayerK...heck_for_a_key

It says in there why you are experiencing this.


It's to do with how you are checking the keys.
Thankyou, and sorry im new to this can you please edit my script or something of the sort?


Re: Keys to open faction doors and gates error... - Sew_Sumi - 29.07.2016

https://sampwiki.blast.hk/wiki/OnPlayerK...pressing_a_key

That should work out better for you. It's because you are simply checking newkeys, and nothing else.


Re: Keys to open faction doors and gates error... - Vince - 29.07.2016

Slightly off-topic: this is some seriously shitty code. I don't know where you got this gamemode but those extensive checks for SelectCharPlace are absolutely horrible.


Re: Keys to open faction doors and gates error... - Louwwieee42 - 29.07.2016

Quote:
Originally Posted by Vince
Посмотреть сообщение
Slightly off-topic: this is some seriously shitty code. I don't know where you got this gamemode but those extensive checks for SelectCharPlace are absolutely horrible.
Well as i said im quite newish to all the Pawno biz, so yeah I was looking for a decent RP Gamemode, not sure if you have any suggestions if so feel free to PM me or whatever...