02.10.2017, 20:04
Код:
new weaponid = GetPlayerFirearm(playerid);
if(weaponid != WEAPON_TYPE_UNKNOWN) switch(GetWeaponType(weaponid))
{
case WEAPON_TYPE_THROWN:
{
if(HOLDING(KEY_FIRE))
{
if(wh_LastThrowTick[playerid] < GetTickCount())
{
if(GetPlayerFirearmAmmo(playerid) > 0)
{
PlayerWeapon[playerid][WeaponAmmo]--;
wh_LastThrowTick[playerid] = GetTickCount() + 1000;
}
}
}
}
}

