Interior weapon - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Interior weapon (
/showthread.php?tid=140291)
Interior weapon -
Razvann - 08.04.2010
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.
Re: Interior weapon -
Thrarod - 08.04.2010
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
Re: Interior weapon -
Razvann - 10.04.2010
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.
Re: Interior weapon -
Jay. - 10.04.2010
Put this line under ur OnGamodeInt
Код:
AllowInteriorWeapons()
Re: Interior weapon -
Razvann - 10.04.2010
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.
Re: Interior weapon -
Jay. - 10.04.2010
I'm sorry but it would be disabled in all the interiors
i don't know anything else sorry
Re: Interior weapon -
Razvann - 10.04.2010
Anyone?
Re: Interior weapon -
Killa_ - 10.04.2010
pawn Код:
public OnPlayerUpdate(playerid)
{
if (GetPlayerInterior(playerid) == ID_OF_BANK_INTERIOR) GivePlayerWeapon(playerid, 0, 0);
return 1;
}