Just create a command where if they are in range of a certain point inside the bank:
pawn Код:
IsPlayerInRangeOfPoint(Float: range, Float: x, Float: y, Float: z);
Then if they are, they can use /robbank. Then you should make a timer
pawn Код:
SetTimerEx("name", interval, repeating, format, float);
forward name();
public name();
So that when the timer hits zero, and they haven't been killed, they get the cash. And if you want, you can set a player checkpoint making them have to go to a drop off location to drop the cash off before actually receiving it.
Hope this help a little bit.
It's easy to do for me, but if this is confusing, just shoot me a PM, and I will script it for you in your script over teamviewer.