السامم عليكككم شباب
كيفكم؟
شباب انا صممت مود انه اللاعب ما يطلع سلاح الا في العالم الوهمي و في ساحة القتال بس ما اشتغلل ممكن حل؟
ذي الاكواد يا ريت مساعدة
Size, Check = 200,
function( Player )
local Investigations = { { getElementDimension( Player ) ~= 1, 'Your place is rejected', 'Dimension' }, { not doesPedHaveJetPack( Player ), 'Do not use the bag', 'JetPack' }, { not isPedInVehicle( Player ), 'You can not', 'Vehicle' } }
for _, Valuable in ipairs( Investigations ) do
if ( not Valuable[1] ) then
outputChatBox( '#FF00D5Sorry: #FFFFFF' .. Valuable[2], Player, 0, 0, 0, true )
return ( ( ( Valuable[3] == 'JetPack' ) and removePedJetPack( Player ) ) or ( Valuable[3] == 'Vehicle' and removePedFromVehicle( Player ) ) )
end
end
end
ColRectangle = createColRectangle( 532.36615 - Size/2, -2177.03638 - Size/2, Size, Size )
createRadarArea( 532.36615 - Size/2, -2177.03638 - Size/2, Size, Size, 255, 0, 0, 150 )
addEventHandler( 'onColShapeHit', ColRectangle,
function( Player )
return ( ( Player and getElementType( Player ) == 'player' ) and Check( Player ) )
end )
addEventHandler ( 'onPlayerWeaponSwitch', root,
function( )
if ( getElementDimension( source ) ~= 0 ) then return
setPedWeaponSlot ( source, 0 ), outputChatBox( '#FFF000[#FFFFFFServer#FFF000]:#FFFFFF لايمكنك إخراج الاسلحه الا في ساحة القتال فقط', source, 255, 0, 0, true )
end
end )