Ugrás a fő tartalomhoz

EditPlayerClass

vigyázat

This function was added in omp v1.1.0.2612 and will not work in earlier versions!

Description

Edit a class data.

NameDescription
classidThe class id to edit.
teamThe team you want the player to spawn in.
skinThe skin which the player will spawn with.
Float:spawnXThe X coordinate of the spawnpoint of this class.
Float:spawnYThe Y coordinate of the spawnpoint of this class.
Float:spawnZThe Z coordinate of the spawnpoint of this class.
Float:angleThe direction in which the player will face after spawning.
WEAPON:weapon1The first spawn-weapon for the player.
ammo1The amount of ammunition for the first spawn weapon.
WEAPON:weapon2The second spawn-weapon for the player.
ammo2The amount of ammunition for the second spawn weapon.
WEAPON:weapon3The third spawn-weapon for the player.
ammo3The amount of ammunition for the third spawn weapon.

Examples

// Edit class id 10
EditPlayerClass(10, TEAM_NONE, 299, -253.8291, 2602.9312, 62.8527, -90.0000, WEAPON_KNIFE, 1, WEAPON_MP5, 100, WEAPON_COLT45, 20);