Click or drag to resize

GameModeBuilderIfHosted Method

Note: This API is now obsolete.

Runs the specified action if this game mode builder is configured to run in hosted mode either by calling UseHosted or by the SA-MP server having started this game mode process in hosted mode.

Namespace:  SampSharp.Core
Assembly:  SampSharp.Core (in SampSharp.Core.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
[ObsoleteAttribute("Multi-process mode is deprecated and will be removed in a future release.")]
public GameModeBuilder IfHosted(
	Action<GameModeBuilder> action
)

Parameters

action
Type: SystemActionGameModeBuilder
The action to run if the game mode builder has been configured to run in hosted mode.

Return Value

Type: GameModeBuilder
The updated game mode configuration builder.
See Also