AllowInteriorWeapons

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 19:28, 19 February 2013
Smithy (Talk | contribs)

← Previous diff
Revision as of 00:14, 1 February 2014
Connor Mead (Talk | contribs)

Next diff →
Line 1: Line 1:
{{Scripting}} {{Scripting}}
-{{Title}} 
{{Description|Toggle whether the usage of weapons in interiors is allowed or not.}} {{Description|Toggle whether the usage of weapons in interiors is allowed or not.}}
Line 27: Line 26:
[[Category:Scripting Functions]] [[Category:Scripting Functions]]
 +[[es:AllowInteriorWeapons]]
 +[[fr:AllowInteriorWeapons]]
[[nl:AllowInteriorWeapons]] [[nl:AllowInteriorWeapons]]
[[ru:AllowInteriorWeapons]] [[ru:AllowInteriorWeapons]]
-[[es:AllowInteriorWeapons]] 

Revision as of 00:14, 1 February 2014



Description:

Toggle whether the usage of weapons in interiors is allowed or not.


Parameters:
(allow)
allow1 to enable weapons in interiors (enabled by default), 0 to disable weapons in interiors.


Return Values:

This function does not return any specific values.


public OnGameModeInit()
{
    // This will allow weapons inside interiors.
    AllowInteriorWeapons(1);
    return 1;
}

Related Functions

The following functions may be useful, as they are related to this function in one way or another.


Related Callbacks

The following callbacks might be useful, as they're related to this function in one way or another.