PlayerSetSpawnInfo Method |
This function can be used to change the spawn information of a specific player. It allows you to automatically set
someone's spawn weapons, their team, skin and spawn position, normally used in case of mini games or
automatic-spawn systems.
Namespace:
SampSharp.Entities.SAMP
Assembly:
SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax public void SetSpawnInfo(
int team,
int skin,
Vector3 position,
float rotation,
Weapon weapon1 = Weapon.None,
int weapon1Ammo = 0,
Weapon weapon2 = Weapon.None,
int weapon2Ammo = 0,
Weapon weapon3 = Weapon.None,
int weapon3Ammo = 0
)
Parameters
- team
- Type: SystemInt32
The Team-ID of the chosen player. - skin
- Type: SystemInt32
The skin which the player will spawn with. - position
- Type: SampSharp.Entities.SAMPVector3
The player's spawn position. - rotation
- Type: SystemSingle
The direction in which the player needs to be facing after spawning. - weapon1 (Optional)
- Type: SampSharp.Entities.SAMPWeapon
The first spawn-weapon for the player. - weapon1Ammo (Optional)
- Type: SystemInt32
The amount of ammunition for the primary spawn-weapon. - weapon2 (Optional)
- Type: SampSharp.Entities.SAMPWeapon
The second spawn-weapon for the player. - weapon2Ammo (Optional)
- Type: SystemInt32
The amount of ammunition for the second spawn-weapon. - weapon3 (Optional)
- Type: SampSharp.Entities.SAMPWeapon
The third spawn-weapon for the player. - weapon3Ammo (Optional)
- Type: SystemInt32
The amount of ammunition for the third spawn-weapon.
See Also