Interior weapon
#1

I want to make, when I'm in the bank, only in the BANK, I can't use my weapons. Something like that:
If I scroll to MP5 it scrolls back to the punch, I can't explain very good.
Reply
#2

if (GetPlayerInterior(playerid, ID_OF_BANK_INTERRIOR))
SetPlayerWeapon(playerid, 0 or -1);
return 1;

or something like that and use it with timer for more effective
Reply
#3

Quote:
Originally Posted by Thrarod
if (GetPlayerInterior(playerid, ID_OF_BANK_INTERRIOR))
SetPlayerWeapon(playerid, 0 or -1);
return 1;

or something like that and use it with timer for more effective
No, I want to make when he left the bank he can use the guns.
Reply
#4

Put this line under ur OnGamodeInt
Код:
AllowInteriorWeapons()
Reply
#5

Quote:
Originally Posted by ("GгNSTг")
Put this line under ur OnGamodeInt
Код:
AllowInteriorWeapons()
Yeah, but it doesen't allow weapons in any interior, I want to be disabled just in the bank interior.
Reply
#6

I'm sorry but it would be disabled in all the interiors


i don't know anything else sorry
Reply
#7

Anyone?
Reply
#8

pawn Код:
public OnPlayerUpdate(playerid)
{
  if (GetPlayerInterior(playerid) == ID_OF_BANK_INTERIOR) GivePlayerWeapon(playerid, 0, 0);
  return 1;
}
Reply


Forum Jump:


Users browsing this thread: