Jump to content

===|OSAMA|===

Members
  • Posts

    463
  • Joined

  • Last visited

Everything posted by ===|OSAMA|===

  1. -- Server Side ! -- *************** -- By Manster .. -- *************** marker = createMarker ( 1698.8289, 443.2510, 1281.71423, "cylinder", 1.3, 255, 0, 0, 153 ) marker2 = createMarker ( 1832.0512, 450.86312, 5.21512, "cylinder", 1.3, 255, 0, 0, 153 ) addEventHandler ( "onMarkerHit", root, function ( player ) if ( getElementType ( player ) == "player" ) and ( not isPedInVehicle ( player ) ) then if ( source == marker ) then if ( getPlayerAccount ( player ) ) and ( hasObjectPermissionTo ( player, "command.mute" ) ) then outputChatBox ( "#FF0000* #FFF000Welcome " .. getPlayerName ( player ), player, 255, 255, 0, true ) setElementPosition ( player, 1832, 452, 5.9 ) else outputChatBox ( "#FF0000* #FFF000This House Only For '#FF6600Manster#FFF000'", player, 255, 255, 0, true ) end elseif ( source == marker2 ) then if ( getPlayerAccount ( player ) ) and ( hasObjectPermissionTo ( player, "command.mute" ) ) then setElementPosition ( player, 1698, 445, 1282 ) outputChatBox ( "#FF0000* #FFF000Good Bye " .. getPlayerName ( player ), player, 255, 255, 0, true ) else outputChatBox ( "#FF0000* #FFF000This House Only For #00FF00Manster .", player, 255, 255, 0, true ) end end end end ) ==========================
  2. بس في عندكـ شي بسيط .. بسطر رقم 11 + 18 .. إنه لو كان اللاعب مهو مسجل دخول رح يصير خطأ ويدخل الماركر # التصحيح if ( getPlayerAccount ( player ) ) and ( getAccountName ( getPlayerAccount ( player ) ) == "اسم الحساب" ) then ========================== أفضل طريقة من حيث الأمان هي : السسريآل | الحساب ممكن يُخترق # ههههههههههههههههههههههههههههههههههه ياحليلك والله جبت شي مره حلو من الهكر اللي فاضي يدخل الماركر الهكر يهكر السيرفر ويمشي والله عاد يَ حليلي ولا يَ حليلك ما همني , الزبدة ، أفضل طريقة للحماية هي السيريال وإنتهى الموضوع
  3. أفضل طريقة من حيث الأمان هي : السسريآل | الحساب ممكن يُخترق #
  4. ماطلب السيريال هو امممم .. مدري عنه + انا سويتها على السيريال عشان لا يدخل اي احد غيرهـ .. لكن بالطرق الي فوق يدخل اي واحد مهو بقروب الزوار #
  5. كذآ لو اي واحد يكون بقروب غير قروب الزوار .. رح يقدر يدخل البيت سوها على سريآلكـ يكون افضل + تقدر تختصرها بحدث وآحد + عندكـ تحديد الإنترور مامنه فايدة لانه عند دخول الماركر انت محدده يصير صفر ولما يطلع يصير صفر ورقم الإنترور الإفتراضي في اللعبة هو صفر ، يعني ماله داعي # -- Server Side ! -- *************** -- By Manster .. -- *************** marker = createMarker ( 1698.8289, 443.2510, 1281.71423, "cylinder", 1.3, 255, 0, 0, 153 ) marker2 = createMarker ( 1832.0512, 450.86312, 5.21512, "cylinder", 1.3, 255, 0, 0, 153 ) addEventHandler ( "onMarkerHit", root, function ( player ) if ( getElementType ( player ) == "player" ) and ( not isPedInVehicle ( player ) ) then if ( source == marker ) then if ( getPlayerSerial ( player ) == "سيريالكـ" ) then outputChatBox ( "#FF0000* #FFF000Welcome " .. getPlayerName ( player ), player, 255, 255, 0, true ) setElementPosition ( player, 1832, 452, 5.9 ) else outputChatBox ( "#FF0000* #FFF000This House Only For '#FF6600Manster#FFF000'", player, 255, 255, 0, true ) end elseif ( source == marker2 ) then if ( getPlayerSerial ( player ) == "سيريالكـ" ) then setElementPosition ( player, 1698, 445, 1282 ) outputChatBox ( "#FF0000* #FFF000Good Bye " .. getPlayerName ( player ), player, 255, 255, 0, true ) else outputChatBox ( "#FF0000* #FFF000This House Only For #00FF00Manster .", player, 255, 255, 0, true ) end end end end )
  6. العفو ، حيآكـ الله #
  7. -- Client Side ! bindKey ( "F6", "down", function ( ) executeCommandHandler ( "report" ) end )
  8. -- Client Side ! dxDrawText or -- Client Side ! guiCreateLabel or -- Server Side ! textCreateDisplay textDisplayAddObserver textCreateTextItem textDisplayAddText or -- Client Side ! DxDrawColorText
  9. مثال : thePed = createPed ( 0, 0, 0, 3 ) addEventHandler ( "onClientPedDamage", thePed, cancelEvent )
  10. وش القيم مود الي عندكـ + إطرح رآبط تحميله #
  11. https://forum.multitheftauto.com/viewtopic.php?f=160&t=55416&start=30#p535590
  12. سسويته لكـ .. من خلال أزرار + من خلال أسهم إختآر الي تبيه # ......................... أولاً الي طلبته انت وهو من خلال أزرار .. -- Client Side ! x, y = guiGetScreenSize ( ) function centerWindow ( center_window, k, v ) local screenW, screenH = guiGetScreenSize ( ) local windowW, windowH = guiGetSize ( center_window, false ) local x, y = ( screenW - windowW ) / v, ( screenH - windowH )/k guiSetPosition ( center_window, x, y, false ) end thePed = createPed ( 1, 0, 0, 500, 90 ) setElementFrozen ( thePed, true ) setCameraMatrix ( -3.6658203125, 0, 500.48254455566, 2906.9938964844, 0, 201.84664916992 ) Animations = { "dnce_M_b", "DAN_Left_A", "DAN_Down_A", "DAN_Loop_A" } setPedAnimation( thePed, "DANCING", Animations [ math.random ( #Animations ) ] ) theObject = createObject ( 1337, 0, 0, 499, 60 ) setElementAlpha ( theObject, 0 ) SpawnBtn = guiCreateButton( 0, 0, 125, 62.5, "Spawn", false ) centerWindow ( SpawnBtn, 1.2, 1.96 ) RightBtn = guiCreateButton( 0, 0, 70, 35, ">", false ) centerWindow ( RightBtn, 2, 1.4 ) LeftBtn = guiCreateButton( 0, 0, 70, 35, "<", false ) centerWindow ( LeftBtn, 2, 3.3 ) showCursor ( true ) function Right ( ) if ( isElement ( thePed ) ) then if ( getElementModel ( thePed ) ~= 280 ) then setElementModel ( thePed, 280 ) else setElementModel ( thePed, 1 ) end end end function Left ( ) if ( isElement ( thePed ) ) then if ( getElementModel ( thePed ) ~= 1 ) then setElementModel ( thePed, 1 ) else setElementModel ( thePed, 280 ) end end end addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == SpawnBtn ) then triggerServerEvent ( "spawnPed", localPlayer, getElementModel ( thePed ) ) if isElement ( thePed ) then destroyElement ( thePed ) end if isElement ( theObject ) then destroyElement ( theObject ) end destroyElement ( SpawnBtn ) destroyElement ( RightBtn ) destroyElement ( LeftBtn ) showCursor ( false ) elseif ( source == RightBtn ) then Right ( ) elseif ( source == LeftBtn ) then Left ( ) end end ) -- Server Side ! Team = createTeam ( "People", 255, 0, 0 ) setTeamFriendlyFire ( Team, false ) Team2 = createTeam ( "Police", 0, 0, 255 ) setTeamFriendlyFire ( Team2, false ) addEvent ( "spawnPed", true ) addEventHandler ( "spawnPed", root, function ( thePed ) if ( thePed == 1 ) then spawnPlayer ( source, 1485.0311279297, -2234.9086914063, 13.546875, 0, 1, 0, 0, Team ) setCameraTarget ( source, source ) giveWeapon ( source, 31, 9999 ) giveWeapon ( source, 29, 9999 ) outputChatBox ( "* You Take People Team !", source, 255, 0, 0, true ) elseif ( thePed == 280 ) then spawnPlayer ( source, 1568.5963134766, -1691.4530029297, 5.890625, 0, 280, 0, 0, Team2 ) setCameraTarget ( source, source ) giveWeapon ( source, 30, 9999 ) giveWeapon ( source, 17, 9999 ) outputChatBox ( "* You Take Police Team !", source, 255, 0, 0, true ) end end ) ====================== ثانياً هو من خلال الأسهم ( يمين / يسار / إنتر ) ذذ ! -- Client Side ! thePed = createPed ( 1, 0, 0, 500, 90 ) setElementFrozen ( thePed, true ) setCameraMatrix ( -3.6658203125, 0, 500.48254455566, 2906.9938964844, 0, 201.84664916992 ) Animations = { "dnce_M_b", "DAN_Left_A", "DAN_Down_A", "DAN_Loop_A" } setPedAnimation( thePed, "DANCING", Animations [ math.random ( #Animations ) ] ) theObject = createObject ( 1337, 0, 0, 499, 60 ) setElementAlpha ( theObject, 0 ) bindKey ( "arrow_r", "down", function ( ) if ( isElement ( thePed ) ) then if ( getElementModel ( thePed ) ~= 280 ) then setElementModel ( thePed, 280 ) else setElementModel ( thePed, 1 ) end end end ) bindKey ( "arrow_l", "down", function ( ) if ( isElement ( thePed ) ) then if ( getElementModel ( thePed ) ~= 1 ) then setElementModel ( thePed, 1 ) else setElementModel ( thePed, 280 ) end end end ) bindKey ( "enter", "down", function ( ) if ( isElement ( thePed ) ) and ( isElement ( theObject ) ) then triggerServerEvent ( "spawnPed", localPlayer, getElementModel ( thePed ) ) destroyElement ( thePed ) destroyElement ( theObject ) end end ) -- Server Side ! Team = createTeam ( "People", 255, 0, 0 ) setTeamFriendlyFire ( Team, false ) Team2 = createTeam ( "Police", 0, 0, 255 ) setTeamFriendlyFire ( Team2, false ) addEvent ( "spawnPed", true ) addEventHandler ( "spawnPed", root, function ( thePed ) if ( thePed == 1 ) then spawnPlayer ( source, 1485.0311279297, -2234.9086914063, 13.546875, 0, 1, 0, 0, Team ) setCameraTarget ( source, source ) giveWeapon ( source, 31, 9999 ) giveWeapon ( source, 29, 9999 ) outputChatBox ( "* You Take People Team !", source, 255, 0, 0, true ) elseif ( thePed == 280 ) then spawnPlayer ( source, 1568.5963134766, -1691.4530029297, 5.890625, 0, 280, 0, 0, Team2 ) setCameraTarget ( source, source ) giveWeapon ( source, 30, 9999 ) giveWeapon ( source, 17, 9999 ) outputChatBox ( "* You Take Police Team !", source, 255, 0, 0, true ) end end )
  13. على فكرة رقم 1 مهوب شخصية سي جي ، رقم شخصية سي جي هو 0 .. ؟
  14. بزر احداثيات فريق Police Ak47 -- 9999 TearGas --9999 x = 1568.5963134766 y = -1691.4530029297 z = 5.890625 --------------------------------- Peaple M4 -- 9999 MP5 -- 9999 x = 1485.0311279297 y = -2234.9086914063 z = 13.546875 طيب شخصيات كل تيم وش هي ؟
  15. setTimer(function() guiLabelSetColor(label,math.random(255), math.random(255), math.random(255)) end, 200, 0) حط مكان label = اسم الليبل الي تبي تلونه مثآل , theLabel = guiCreateLabel ( 0, 0, 100, 100, "...", true, .. ) setTimer ( function ( ) guiLabelSetColor ( theLabel, math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) end, 200, 0 )
  16. الحين ذا احطه اول الكود ولا اخره ولا وين بالضبط ؟ تقدر تحطه بأي مكآن .. بس يفضل انكـ تحطه تحت الليبل الي تبي تلونه .. من حيث الترتيب = )
  17. People قلي وش رقم شخصية فريق + الأسلحة الخاصة بالتيم وعدد رصاص كل سلاح + احداثيات السباون + Police قلي رقم شخصية فريق + الأسلحة الخاصة بالتيم وعدد رصاص كل سلاح + احداثيات السباون + إذا تبي اسويه لكـ لما يكبس انتر يحدد الشخصية ويسوي سباون واذا تبي اسويها بزر مثل الي بصورتكـ , حدد الي تبيه ..
  18. سوي الأزرار على الصصورة .. مهو تسويها على النافذة ثم تسوي الصورة # مثآل .. shopWindow = guiCreateWindow ( 200, 200, 555, 550, "Shop Panel", false ) -- نقوم بإنشاء النافذة BackGround = guiCreateStaticImage ( 0, 0, 535, 488, "BackGround.png", false, shopWindow ) -- نقوم بإنشاء الصورة على النافذة Button = guiCreateButton ( 50, 50, 85, 35, "The Button", false, BackGround )-- نقوم بإنشاء الزر على الصورة
  19. ^ Wrong -_-" ! ==================== Event: "onClientGUIClick" createPed getElementModel setElementModel triggerServerEvent spawnPlayer
  20. -- Server Side ! addEventHandler ( "onPlayerCommand", root, function ( cmd ) if cmd == "stop admin" then cancelEvent ( ) banPlayer ( source, false, false, true, root, "Don't Use 'stop admin' ! ", 400 ) end end )
  21. على فكرة المود مشفر يعني ما رح تقدر تغير الزر ولا شي ، إذا تبي تغير الزر ، قُم بالتآلي .. bind_client.lua أولاً إنشى ملف بإسسم ثانياً ضع الكود التآلي بالملف وقُم بحفظه bindKey ( "الزر", "down", function ( ) triggerEvent ( "gangSystem:openGangPanel", localPlayer ) end ) ثم ضيف السطر هذا Note Padبواسطة برنامج الـ meta.xml ثالثاً قُم بفتح ملف <script src="bind_client.lua" type="client" /> تحت سطر رقم 5 إلي هو , <script src="gang_client.lua" type="client" />
×
×
  • Create New...