AllowInteriorWeapons
#1

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.
Reply
#2

I have the same problem
Reply
#3

Function is useless anyways. Make your own function?
Reply
#4

The function is useful for rp servers. Its no big deal if its removed, scripting something similar shouldn't take too long
Reply
#5

I wouldn't say removing weapons in interiors is good for RP, your telling me people can't have weapons in doors? XD
Reply
#6

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
Reply
#7

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.
Reply
#8

Why were some functions deleted? I don't get it.
Reply
#9

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)
^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)