BaseModeAddPlayerClass Method (Int32, Int32, Vector3, Single) |
Adds a class to class selection. Classes are used so players may spawn with a skin of their choice.
Namespace:
SampSharp.GameMode
Assembly:
SampSharp.GameMode (in SampSharp.GameMode.dll) Version: 0.0.0-local+709673996c0cc3c0733358a87691d1009326afa7
Syntaxpublic virtual int AddPlayerClass(
int teamid,
int modelid,
Vector3 position,
float zAngle
)
Parameters
- teamid
- Type: SystemInt32
The team you want the player to spawn in. - modelid
- Type: SystemInt32
The skin which the player will spawn with. - position
- Type: SampSharp.GameModeVector3
The coordinate of the class' spawn position. - zAngle
- Type: SystemSingle
The direction in which the player will face after spawning.
Return Value
Type:
Int32The ID of the class that was just created.
See Also