Click or drag to resize

PlayerSetWorldBounds Method

Set the world boundaries for this player - players can not go out of the boundaries.

Namespace:  SampSharp.Entities.SAMP
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public void SetWorldBounds(
	float xMax,
	float xMin,
	float yMax,
	float yMin
)

Parameters

xMax
Type: SystemSingle
The maximum X coordinate the player can go to.
xMin
Type: SystemSingle
The minimum X coordinate the player can go to.
yMax
Type: SystemSingle
The maximum Y coordinate the player can go to.
yMin
Type: SystemSingle
The minimum Y coordinate the player can go to.
Remarks
You can reset the player world bounds by setting the parameters to 20000.0000, -20000.0000, 20000.0000, -20000.0000.
See Also