27.09.2012, 06:16
You can try like thiS
pawn Код:
CMD:enter(playerid,params[])
{
new bint;
bint = GetPlayerInterior(playerid);
if(bint == 0) //0 is the interior id of bank.
{
//Function here.
}
else
{
SendClientMessage(playerid, 0xFF0000, "You need to be in a bank to use this command.");
}
return 1;
}