SA-MP Forums Archive
[HELP] Disable command everywhere except bank interior - 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: [HELP] Disable command everywhere except bank interior (/showthread.php?tid=356369)



[HELP] Disable command everywhere except bank interior - anito - 03.07.2012

Hey guys. If you can help me please hurry. I need to add one thing to my bank system. I want (like) to limit bank command just to bank interior. So if i try /bank outside bank it sends "You are not in bank!", and if i enter bank then i'm able to perform that command. Thanks in advance.
Sincerely,
anito


Re: [HELP] Disable command everywhere except bank interior - Yashas - 03.07.2012

Guys, I was about the same topic.
I too need a solution for this.
Thanks for your consideration.


Re: [HELP] Disable command everywhere except bank interior - ryansheilds - 03.07.2012

pawn Код:
IsPlayerInRangeOfPoint(playerid, Float:range, Float:x, Float:y, Float:z)
Just add a point inside the bank and do the range about 20 depending on the interior size.


Re: [HELP] Disable command everywhere except bank interior - Yashas - 03.07.2012

Oh ,so simple.
Thanks

One more quest.How can I determine the Rang of the interior ?


Re: [HELP] Disable command everywhere except bank interior - LaGrande - 03.07.2012

RANGE = the distance away from the interior u want, it's upto u, how much range u want to set.


Re: [HELP] Disable command everywhere except bank interior - [MM]RoXoR[FS] - 03.07.2012

how about

pawn Код:
if(GetPlayerInterior(playerid) == BANK_INTERIOR)
//Allow here



Re: [HELP] Disable command everywhere except bank interior - anito - 03.07.2012

Quote:
Originally Posted by [MM]RoXoR[FS]
Посмотреть сообщение
how about

pawn Код:
if(GetPlayerInterior(playerid) == BANK_INTERIOR)
//Allow here
Roxor my man, thanks!