- Версия SA-MP
-
- 0.3.7 (R1)
Lua:
local ppos = vector3d(getCharCoordinates(PLAYER_PED))
local tpos = vector3d(getCharCoordinates(ped))
if weapon >= 22 and weapon <= 38 then
local data = samp_create_sync_data('bullet', false)
data.targetType = 1
data.targetId = nearest
data.origin = ppos
data.target = tpos
data.weaponId = weapon
data.send()
end
sampSendGiveDamage(nearest, damage[weapon] and damage[weapon] or 5.28, weapon, 3)