0 Üye ve 1 Ziyaretçi konuyu incelemekte.
alincaklar = { [4] = true,--knife [9] = true,--chainsaw}addEventHandler("onColShapeHit", seninCol, function(giren) -- alana girildiğinde if getElementType(giren) == "player" then -- eğer giren elementin tipi player ise for i,id in pairs( getPedWeapons(giren)) do -- oyuncunun silahlrını döndür if alincaklar[id] then -- eğer oyuncunun silahlarında alincaklar tablosundakiler varsa takeWeapon(giren, id) -- oyuncudan silahı al end end endend)--useful function getPedWeapons(ped) local playerWeapons = {} if ped and isElement(ped) and getElementType(ped) == "ped" or getElementType(ped) == "player" then for i=2,9 do local wep = getPedWeapon(ped,i) if wep and wep ~= 0 then table.insert(playerWeapons,wep) end end else return false end return playerWeaponsend