AddPlayerClassEx KO
From SA-MP Wiki
Revision as of 22:03, 9 May 2015; view current revision
←Older revision | Newer revision→
←Older revision | Newer revision→
SA:MP Wiki 한글화 작업
Description:
이 함수는 팀 기능을 하는 기능 외에 AddPlayerClass 함수와 같은 기능을 합니다.
(teamid, skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo)
teamid | 플레이어가 스폰될 팀 번호. |
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() { // 사람들은 오직 15번 클래스의 CJ 스킨으로만 스폰된다. AddPlayerClassEx(15, 0, 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.
- AddPlayerClass: Add a class.
- SetSpawnInfo: Set the spawn setting for a player.
- SetPlayerTeam: Set a player's team.
- SetPlayerSkin: Set a player's skin.
SA:MP Wiki 한글판 페이지는 TheNoFace에 의해 만들어졌습니다. |
---|