AllowInteriorWeapons - 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: AllowInteriorWeapons (
/showthread.php?tid=95304)
AllowInteriorWeapons -
Lightning[SV] - 03.09.2009
I still can use weapons in interiors. Is it a Bug?
In 0.2 its disabled by default but i also tried using AllowInteriorWeapons(0) under OnGameModeInit() but i could still use them.
Re: AllowInteriorWeapons -
Duelos SA - 08.09.2009
I have the same problem
Re: AllowInteriorWeapons -
[eLg]Timmy - 08.09.2009
Function is useless anyways. Make your own function?
Re: AllowInteriorWeapons -
Lightning[SV] - 08.09.2009
The function is useful for rp servers. Its no big deal if its removed, scripting something similar shouldn't take too long
Re: AllowInteriorWeapons -
gotenks918 - 08.09.2009
I wouldn't say removing weapons in interiors is good for RP, your telling me people can't have weapons in doors? XD
Re: AllowInteriorWeapons -
*Crash* - 08.09.2009
Quote:
Originally Posted by gotenks918
I wouldn't say removing weapons in interiors is good for RP, your telling me people can't have weapons in doors? XD
|
u right xD
Re: AllowInteriorWeapons -
Calgon - 09.09.2009
Quote:
Originally Posted by gotenks918
I wouldn't say removing weapons in interiors is good for RP, your telling me people can't have weapons in doors? XD
|
About to say the same, and:
pawn Код:
public PlayerWeapons(playerid)
{
if(GetPlayerInterior(playerid) == 0)
{
return 1;
}
else if(GetPlayerWeapon(playerid) > 0)
{
ResetPlayerWeapons(playerid);
HasBeenReset[playerid]++;
}
}
And that's something for your anti-cheat too I guess.. If reset = x, ban for hacks.
Re: AllowInteriorWeapons -
[RO]Madalin2009 - 09.09.2009
Why were some functions deleted? I don't get it.
Re: AllowInteriorWeapons -
saiberfun - 09.09.2009
Quote:
Originally Posted by Calgon
Quote:
Originally Posted by gotenks918
I wouldn't say removing weapons in interiors is good for RP, your telling me people can't have weapons in doors? XD
|
About to say the same, and:
pawn Код:
public PlayerWeapons(playerid) { if(GetPlayerInterior(playerid) == 0) { return 1; } else if(GetPlayerWeapon(playerid) > 0) { ResetPlayerWeapons(playerid); HasBeenReset[playerid]++; } }
And that's something for your anti-cheat too I guess.. If reset = x, ban for hacks.
|
lol just use OnPlayer InteriorChange
n then
if(newinterior != 0)
{
ResetPlayerWeapons(playerid);
interior = 1;
}
if(newinterior == 0)
{
interior = 0;
}
and a timer which resets the weapons if(interio == 1)
^^