Jump to content

mrali222

Members
  • Posts

    12
  • Joined

  • Last visited

Everything posted by mrali222

  1. ابي طلب ابي اسحب رصاص من أي عضو
  2. لقيت المود حق عناد التوب ~ كلينت function guiCreateWindow(x2, y2, width2, height2, titleBarText2, relative2) local mainBackground = guiCreateStaticImage ( x2, y2, width2, height2, "Images/img.png", relative2 ) local mainBackgroundLabel = guiCreateLabel ( 0, 0, 700, 100, " "..titleBarText2, false, mainBackground ) guiSetFont ( mainBackgroundLabel, guiCreateFont ( "Fonts/1Font.TTF", 17 ) ) guiSetEnabled ( mainBackgroundLabel, false ) return mainBackground end function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end _getPlayerName = getPlayerName function getPlayerName(player) return string.gsub(_getPlayerName(player), "#%x%x%x%x%x%x", "" ) end TopWindow = guiCreateWindow(30, 86, 720, 400, ":: [Z.L] - Top Players ::", false) guiSetVisible(TopWindow, false) guiSetAlpha(TopWindow, 1.00) TopDrift = guiCreateStaticImage(10, 28, 140, 76, "Images/drift.png", false, TopWindow) TopScore = guiCreateStaticImage(10, 115, 140, 76, "Images/score.png", false, TopWindow) TopTime = guiCreateStaticImage(5, 205, 140, 76, "Images/time.png", false, TopWindow) TopMoney = guiCreateStaticImage(5, 295, 140, 76, "Images/money.png", false, TopWindow) guiSetAlpha ( TopDrift, 0.3 ) guiSetAlpha ( TopScore, 0.3 ) guiSetAlpha ( TopTime, 0.3 ) guiSetAlpha ( TopMoney, 0.3 ) centerWindow(TopWindow) font = guiCreateFont ( 'Fonts/Font.TTF', 10 ) DriftList = guiCreateGridList(160, 29, 550, 335, false, TopWindow) guiGridListSetSortingEnabled( DriftList, false ) RankColumn = guiGridListAddColumn(DriftList, "Rank", 0.1) NameColumn = guiGridListAddColumn(DriftList, "Player Name", 0.5) TotalColumn = guiGridListAddColumn(DriftList, "[Z.L] Level", 0.3) guiSetProperty( DriftList, 'Disabled', 'True' ) guiSetAlpha( DriftList, 1 ) guiSetFont( DriftList, font ) guiSetVisible(DriftList, false) ScoreList = guiCreateGridList(160, 29, 550, 335, false, TopWindow) guiGridListSetSortingEnabled( ScoreList, false ) guiGridListAddColumn(ScoreList, "Rank", 0.1) guiGridListAddColumn(ScoreList, "Player Name", 0.5) guiGridListAddColumn(ScoreList, "[Z.L] Total Kills", 0.3) guiSetProperty( ScoreList, 'Disabled', 'True' ) guiSetAlpha( ScoreList, 1 ) guiSetFont( ScoreList, font ) guiSetVisible(ScoreList, false) TimeList = guiCreateGridList(160, 29, 550, 335, false, TopWindow) guiGridListSetSortingEnabled( TimeList, false ) guiGridListAddColumn(TimeList, "Rank", 0.1) guiGridListAddColumn(TimeList, "Player Name", 0.5) guiGridListAddColumn(TimeList, "[Z.L] Total Play Time", 0.3) guiSetProperty( TimeList, 'Disabled', 'True' ) guiSetAlpha( TimeList, 1 ) guiSetFont( TimeList, font ) guiSetVisible(TimeList, false) MoneyList = guiCreateGridList(160, 29, 550, 335, false, TopWindow) guiGridListSetSortingEnabled( MoneyList, false ) guiGridListAddColumn(MoneyList, "Rank", 0.1) guiGridListAddColumn(MoneyList, "Player Name", 0.5) guiGridListAddColumn(MoneyList, "[Z.L] Total Money", 0.3) guiSetProperty( MoneyList, 'Disabled', 'True' ) guiSetAlpha( MoneyList, 1 ) guiSetFont( MoneyList, font ) guiSetVisible(MoneyList, false) addEventHandler ( "onClientMouseEnter", root, function ( ) if source == TopDrift then guiSetAlpha ( TopDrift, 1 ) playSoundFrontEnd ( 3 ) elseif source == TopScore then guiSetAlpha ( TopScore, 1 ) playSoundFrontEnd ( 3 ) elseif source == TopTime then guiSetAlpha ( TopTime, 1 ) playSoundFrontEnd ( 3 ) elseif source == TopMoney then guiSetAlpha ( TopMoney, 1 ) playSoundFrontEnd ( 3 ) end end ) addEventHandler ( "onClientMouseLeave", root, function ( ) if source == TopDrift then if guiGetVisible ( DriftList ) == false then guiSetAlpha ( TopDrift, 0.3 ) end elseif source == TopScore then if guiGetVisible ( ScoreList ) == false then guiSetAlpha ( TopScore, 0.3 ) end elseif source == TopTime then if guiGetVisible ( TimeList ) == false then guiSetAlpha ( TopTime, 0.3 ) end elseif source == TopMoney then if guiGetVisible ( MoneyList ) == false then guiSetAlpha ( TopMoney, 0.3 ) end end end ) addEventHandler ( "onClientGUIClick", root, function ( ) if source == TopDrift then guiSetAlpha ( TopDrift, 1 ) guiSetAlpha ( TopScore, 0.3 ) guiSetAlpha ( TopTime, 0.3 ) guiSetAlpha ( TopMoney, 0.3 ) playSoundFrontEnd ( 13 ) if guiGetVisible ( DriftList ) == false then guiSetVisible ( DriftList, true ) end if guiGetVisible ( ScoreList ) then guiSetVisible ( ScoreList, false ) end if guiGetVisible ( TimeList ) then guiSetVisible ( TimeList, false ) end if guiGetVisible ( MoneyList ) then guiSetVisible ( MoneyList, false ) end elseif source == TopScore then guiSetAlpha ( TopDrift, 0.3 ) guiSetAlpha ( TopScore, 1 ) guiSetAlpha ( TopTime, 0.3 ) guiSetAlpha ( TopMoney, 0.3 ) playSoundFrontEnd ( 13 ) if guiGetVisible ( ScoreList ) == false then guiSetVisible ( ScoreList, true ) end if guiGetVisible ( DriftList ) then guiSetVisible ( DriftList, false ) end if guiGetVisible ( TimeList ) then guiSetVisible ( TimeList, false ) end if guiGetVisible ( MoneyList ) then guiSetVisible ( MoneyList, false ) end elseif source == TopTime then guiSetAlpha ( TopDrift, 0.3 ) guiSetAlpha ( TopScore, 0.3 ) guiSetAlpha ( TopTime, 1 ) guiSetAlpha ( TopMoney, 0.3 ) playSoundFrontEnd ( 13 ) if guiGetVisible ( TimeList ) == false then guiSetVisible ( TimeList, true ) end if guiGetVisible ( DriftList ) then guiSetVisible ( DriftList, false ) end if guiGetVisible ( ScoreList ) then guiSetVisible ( ScoreList, false ) end if guiGetVisible ( MoneyList ) then guiSetVisible ( MoneyList, false ) end elseif source == TopMoney then guiSetAlpha ( TopDrift, 0.3 ) guiSetAlpha ( TopScore, 0.3 ) guiSetAlpha ( TopTime, 0.3 ) guiSetAlpha ( TopMoney, 1 ) playSoundFrontEnd ( 13 ) if guiGetVisible ( MoneyList ) == false then guiSetVisible ( MoneyList, true ) end if guiGetVisible ( DriftList ) then guiSetVisible ( DriftList, false ) end if guiGetVisible ( ScoreList ) then guiSetVisible ( ScoreList, false ) end if guiGetVisible ( TimeList ) then guiSetVisible ( TimeList, false ) end end end ) function convertNumber ( number ) local formatted = number while true do formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2') if ( k==0 ) then break end end return formatted end function getPlayersSortByDrif( ) local Top = { } for _, aPlayer in next, getElementsByType 'player' do table.insert ( Top, { player = aPlayer, aDrif = getElementData ( aPlayer, 'Level' ) or 0 } ) end table.sort( Top, function( a, b ) return( tonumber( a.aDrif ) or 0 ) > ( tonumber( b.aDrif ) or 0 ) end ) return Top end function getPlayersSortByaScore( ) local TopScore = { } for _, aPlayer in next, getElementsByType 'player' do table.insert ( TopScore, { player = aPlayer, aScore = getElementData ( aPlayer, 'kills' ) or 0 } ) end table.sort( TopScore, function( a, b ) return( tonumber( a.aScore ) or 0 ) > ( tonumber( b.aScore ) or 0 ) end ) return TopScore end function getPlayersSortByaTime( ) local TopTimer = { } for _, aPlayer in next, getElementsByType 'player' do Time = getElementData ( aPlayer, 'Time' ) or "0:0:0" local h, m, s = unpack ( split ( Time, ":" ) ) table.insert ( TopTimer,
  3. مدري في أي مود ~ يوم احد يطلع من السيرفر او يموت تزيد
  4. عندي مشكلةة يوم يموت احد يعطيه سلاح مثلا : انا معي خلاط 5 الف رصاصه ومت يعطيني دبل 10 الف
  5. ابي مود التواجد وحفظ التواجد بليز ##
  6. هههههههه لازم تشكر جنرال هو لي عمل الكود وتعذب شكرأأ جنرأل
  7. شكرأ عقيد ولك انت عقيد ~
  8. ما فهمتني +> ما ابي شخصيةةة ابي رتبة لما تدخل ما تموت مو شخصيهههههه @@ يعني منطقه محمية للادمنية - مااحد يقدر يطلق ولا يصوب ولا يصوب من الموتر ويموت أي احد غيرالادمنية يدخله أتمنى مساعده
  9. مو الحماية من الشخصية؟؟ ابيها بالرتبة مب الشخصيةة
  10. ابي مو شخصيةة ابي رتبة كونسل فقط تدخل ~ وغير أي الرتبة ذي او لاعب يموت
  11. ابي مو شخصيةة ابي رتبة كونسل فقط تدخل ~ وغير أي الرتبة ذي او لاعب يموت وفي حركة وصخه ابي اللي داخل وفي واحد برع وضربة ما يقتله لانو الحين يقدر يقتله الكود safecol = createColCuboid ( -404.13677978516, 1761.6762695313, 43.881458282471, 255, 255, 255 ) safeZoneRadar = createRadarArea ( -404.13677978516, 1761.6762695313, 255, 255, 255, 255, 255 ) setElementData (safeZoneRadar, "zombieProof", true) local Skins = { -- [ Skin number ] = true or true, [ 293 ] = true, } function enterZone ( hitPlayer, thePlayer ) if ( Skins [ getElementModel ( hitPlayer ) ] ) then toggleControl (hitPlayer, "fire", true ) toggleControl (hitPlayer, "aim_weapon", true) toggleControl (hitPlayer, "vehicle_fire", true) outputChatBox ( "* you Entered Zone", hitPlayer, 0, 255, 0 ) else killPed ( hitPlayer ) end end addEventHandler( "onColShapeHit", safecol, enterZone ) function leaveZone ( hitPlayer, thePlayer ) toggleControl ( hitPlayer, "fire", true ) toggleControl ( hitPlayer, "aim_weapon", true ) toggleControl ( hitPlayer, "vehicle_fire", true ) outputChatBox ( "* you left Zone !", hitPlayer, 255, 0, 0 ) if not ( Skins [ getElementModel ( hitPlayer ) ] ) then killPed ( hitPlayer ) end end addEventHandler( "onColShapeLeave", safecol, leaveZone ) aclGroupAddObject ( aclGetGroup( "Console" ), "user.SPR" )
×
×
  • Create New...