Click or drag to resize
BaseModeAddPlayerClass Method (Int32, Int32, Vector3, Single, Weapon, Int32, Weapon, Int32, Weapon, Int32)
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.7.6221.37952
Syntax
public virtual int AddPlayerClass(
	int teamid,
	int modelid,
	Vector3 position,
	float zAngle,
	Weapon weapon1,
	int weapon1Ammo,
	Weapon weapon2,
	int weapon2Ammo,
	Weapon weapon3,
	int weapon3Ammo
)

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.
weapon1
Type: SampSharp.GameMode.DefinitionsWeapon
The first spawn-weapon for the player.
weapon1Ammo
Type: SystemInt32
The amount of ammunition for the first spawn weapon.
weapon2
Type: SampSharp.GameMode.DefinitionsWeapon
The second spawn-weapon for the player.
weapon2Ammo
Type: SystemInt32
The amount of ammunition for the second spawn weapon.
weapon3
Type: SampSharp.GameMode.DefinitionsWeapon
The third spawn-weapon for the player.
weapon3Ammo
Type: SystemInt32
The amount of ammunition for the third spawn weapon.

Return Value

Type: Int32
The ID of the class that was just created.
See Also