mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-07-18 17:38:12 +08:00
[saco] Match GameSetLocalPlayerWeaponSkillLevel(...)
This commit is contained in:
@ -167,11 +167,11 @@ void __stdcall GameSetPlayerWeaponSkillLevel(int iPlayer, int iSkill, WORD wLeve
|
||||
|
||||
//----------------------------------------------------------
|
||||
|
||||
void __stdcall GameSetLocalPlayerWeaponSkillLevel(int iSkill, float fLevel)
|
||||
void __stdcall GameSetLocalPlayerWeaponSkillLevel(int iSkill, WORD wLevel)
|
||||
{
|
||||
if(iSkill < 11) {
|
||||
fLocalWeaponSkill[iSkill] = fLevel;
|
||||
pfStats[iSkill + 69] = fLevel;
|
||||
fLocalWeaponSkill[iSkill] = (float)wLevel;
|
||||
pfStats[iSkill + 69] = (float)wLevel;
|
||||
}
|
||||
}
|
||||
|
||||
@ -225,7 +225,6 @@ void __stdcall GameResetLocalPlayerWeaponSkills()
|
||||
pfStats[78] = 999.0f; // m4
|
||||
pfStats[79] = 999.0f; // sniper
|
||||
|
||||
|
||||
GameStoreLocalPlayerWeaponSkills();
|
||||
}
|
||||
|
||||
|
@ -29,8 +29,8 @@ void __stdcall GameSetRemotePlayerCameraExtZoom(BYTE bytePlayerID);
|
||||
float __stdcall GameGetLocalPlayerCameraExtZoom();
|
||||
float __stdcall GameGetLocalPlayerAspectRatio();
|
||||
|
||||
void __stdcall GameSetLocalPlayerWeaponSkillLevel(int iSkill, float fLevel);
|
||||
void __stdcall GameSetPlayerWeaponSkillLevel(int iPlayer, int iSkill, WORD wLevel);
|
||||
void __stdcall GameSetLocalPlayerWeaponSkillLevel(int iSkill, WORD wLevel);
|
||||
void __stdcall GameStoreLocalPlayerWeaponSkills();
|
||||
void __stdcall GameSetLocalPlayerWeaponSkills();
|
||||
void __stdcall GameResetLocalPlayerWeaponSkills();
|
||||
|
Reference in New Issue
Block a user