SA-MP Forums Archive
LSPD Door buttons - 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: LSPD Door buttons (/showthread.php?tid=66597)



LSPD Door buttons - Jaztek_Hodzic - 23.02.2009

hi,
in my lspd hq i have doors blocking the lobby
how can i make like a fire alarm object next to the door on the wall
and when i press it it will open the door.
only for cops not civilians.
and on the other side, of the lobby it has another button for everyone.
so jailed ppl can get out. instead of asking police..

ive seen this on other servers so i no it can be done...

thanks



Re: LSPD Door buttons - ғαιιοцт - 23.02.2009

button outside:
OnPlayerKeyStateChange
IsPlayerInArea[ofbutton1] && "IsCop"
ApplyAnimation(cardswipe)
MoveObject

button inside:
OnPlayerKeyStateChange
IsPlayerInArea[ofbutton2]
ApplyAnimation(cardswipe)
MoveObject


Re: LSPD Door buttons - riding-bmx - 23.02.2009

Quote:
Originally Posted by °ғαιιοцт°
button outside:
OnPlayerKeyStateChange
IsPlayerInArea[ofbutton1] && "IsCop"
ApplyAnimation(cardswipe)
MoveObject

button inside:
OnPlayerKeyStateChange
IsPlayerInArea[ofbutton2]
ApplyAnimation(cardswipe)
MoveObject
Instead of IsPlayerInArea can't you use PlayerToPoint?


Re: LSPD Door buttons - ғαιιοцт - 23.02.2009

Quote:
Originally Posted by riding-bmx
Quote:
Originally Posted by °ғαιιοцт°
button outside:
OnPlayerKeyStateChange
IsPlayerInArea[ofbutton1] && "IsCop"
ApplyAnimation(cardswipe)
MoveObject

button inside:
OnPlayerKeyStateChange
IsPlayerInArea[ofbutton2]
ApplyAnimation(cardswipe)
MoveObject
Instead of IsPlayerInArea can't you use PlayerToPoint?
yes that's better


Re: LSPD Door buttons - Nito - 21.06.2009

I don't understand can you give more details please?


Re: LSPD Door buttons - Nito - 21.06.2009

Anyone know about that? Can you give me your scripts?