AddPlayerClass KO
From SA-MP Wiki
Revision as of 22:31, 2 March 2013; view current revision
←Older revision | Newer revision→
←Older revision | Newer revision→
SA:MP Wiki 한글화 작업
Description:
새 클래스를 생성합니다. 플레이어들은 그들이 선택한 클래스의 스킨으로 스폰됩니다.
(skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo)
skin | 플레이어들이 스폰될 클래스의 스킨. |
Float:X | 선택한 클래스가 소환될 X 좌표. |
Float:Y | 선택한 클래스가 소환될 Y 좌표. |
Float:Z | 선택한 클래스가 소환될 Z 좌표. |
Float:Angle | 플레이어가 스폰 후에 바라보고있을 방향. |
weapon1 | 플레이어의 첫번째 무기 . |
weapon1_ammo | 플레이어의 첫번째 무기의 탄약의 양. |
weapon2 | 플레이어의 두번째 무기 . |
weapon2_ammo | 플레이어의 두번째 무기의 탄약의 양. |
weapon3 | 플레이어의 세번째 무기 . |
weapon3_ammo | 플레이어의 세번째 무기의 탄약의 양. |
Return Values:
생성된 클래스의 ID를 반환.
public OnGameModeInit() { // 플레이어는 CJ 스킨이나 Truth 스킨을 선택하여 스폰된다. AddPlayerClass(0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); AddPlayerClass(1, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); return 1; }
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- AddPlayerClassEx: Add a class with a default team.
- SetSpawnInfo: Set the spawn setting for a player.
- SetPlayerSkin: Set a player's skin.
SA:MP Wiki 한글판 페이지는 TheNoFace에 의해 만들어졌습니다. |
---|