- 3
- 0
Помогите скомпилировать в ASI. Активация автоматическая, при инициализации сампа
ASI:
{
static int iSlot = 0;
static int iState = 0;
if (pSAMP->getPlayers()->pLocalPlayer->onFootData.stSampKeys.keys_aim && FindPlayerPed()->m_nActiveWeaponSlot == 2) {
iState = 1;
}
else if (iState == 2)
{
FindPlayerPed()->SetCurrentWeapon(iSlot);
iState = 0;
}
else if (iState == 1)
{
iSlot = FindPlayerPed()->m_nActiveWeaponSlot;
FindPlayerPed()->m_nActiveWeaponSlot = 0;
iState = 2;
}
}