Weapons in interiors.
#1

How could i stop players having weapons in interiors. i'v tryed the 2 codes below and none of them seemed to work.
All help is appericated, thank you.
pawn Код:
AllowInteriorWeapons(0);
and
pawn Код:
AllowInteriorWeapons(1);
Reply
#2

AllowInteriorWeapons();

try that
Reply
#3

Try
pawn Код:
SetPlayerArmedWeapon(playerid, 0); // Disables weapons
Reply
#4

you could also store weapons into an array and then disarm them, and when they leave it give back their weapons
Reply
#5

Quote:
Originally Posted by <Weponz>
Посмотреть сообщение
AllowInteriorWeapons();

try that
Nope.

Quote:
Originally Posted by [L3th4l]
Посмотреть сообщение
Try
pawn Код:
SetPlayerArmedWeapon(playerid, 0); // Disables weapons
That just sets your weapon to fist but you can change it back to a weapon.
Quote:
Originally Posted by cessil
Посмотреть сообщение
you could also store weapons into an array and then disarm them, and when they leave it give back their weapons
Yeh guess i will have to do this, is there a easier way tho?
Reply
#6

Quote:
Originally Posted by cessil
Посмотреть сообщение
you could also store weapons into an array and then disarm them, and when they leave it give back their weapons
Im not sure about this, i tried it once but it bugs the weapons...
Reply
#7

Quote:
Originally Posted by Code_Red
Посмотреть сообщение
Im not sure about this, i tried it once but it bugs the weapons...
if you mean the ammo, then GetWeaponData is a lot better now
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)