AllowInteriorWeapons
Description:
Function AllowInteriorWeapons toggle whether the usage of weapons in interiors is allowed or not.
This function does not work in the current SA:MP version! |
Parameters:
(allow)
bool | allow | 1 to enable weapons in interiors (enabled by default), 0 to disable weapons in interiors. |
Return Values:
This function does not return any specific values.
Examples:
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.
- SetPlayerInterior: Set a player's interior.
- GetPlayerInterior: Get the current interior of a player.
Related Callbacks
The following callbacks might be useful as well, as they are related to this callback in one way or another.
- OnPlayerInteriorChange: Called when a player changes interior.