جرب,
-- Server Side #
local Weapons = {[1]=true,[2]=true,[3]=true,[4]=true,[5]=true,[6]=true,[7]=true,[8]=true,[9]=true,[10]=true,[11]=true,[12]=true,[14]=true,[15]=true,[42]=true,[43]=true,[44]=true,[45]=true}
local marker = createMarker(...)
addEventHandler('onMarkerHit', marker,function ( plr )
if getElementType ( plr ) == "player" then
if getPedWeapon(plr) == 0 or Weapons[getPedWeapon(plr)] then outputChatBox(' ليس لديك اسلحه',plr,255,50,1,true)
else
if getPedWeapon(plr) > 0 then outputChatBox('لديك اسلحه *',plr,50,50,255,true)
setElementPosition(plr,x,y,z)
end
end
end
end
)