[HELP] Disable command everywhere except bank interior
#1

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
Reply
#2

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

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.
Reply
#4

Oh ,so simple.
Thanks

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

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

how about

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)