Jump to content

Mr-M3AND

Members
  • Posts

    312
  • Joined

  • Last visited

Everything posted by Mr-M3AND

  1. -- server Marker = createMarker ( x, y, z, "cylinder", 6, 234, 255, 255, 23 ) addEventHandler("onMarkerHit",Marker, function(Player) takeAllWeapons ( Player ) giveWeapon (Player,31,200,true) end )
  2. http://arabsh.com/files/0c35464260f3/save-zip.html
  3. جرب ذا -- Client local x, y, z = 1544.69921875, -1630.7998046875, 13.300000190735 local Marker = createMarker ( 1544.32288, -1627.25330, 11.38281, "cylinder", 6, 0, 0, 0, 0 ) local Object = createObject ( 968, x, y, z, 0, 90, 90 ) addEventHandler("onClientMarkerHit",Marker, function (player) if (getTeamName( getPlayerTeam( localPlayer )) == "Police" ) then moveObject ( Object, 1000,x, y, z,0,-90,0 ) end end ) addEventHandler("onClientMarkerLeave",Marker, function(player) if (getTeamName( getPlayerTeam( localPlayer )) == "Police" ) then moveObject ( Object, 1000,x, y, z,0,90,0 ) end end )
  4. جرب هذا local x, y, z = 1544.69921875, -1630.7998046875, 13.300000190735 local teamName = "Police" local Object = createObject ( 968, x, y, z, 0, 90, 90 ) local Marker = createMarker ( 1544.32288, -1627.25330, 11.38281, "cylinder", 5, 0, 0, 0, 0 ) function countPlayersInMarker ( marker ) local players = 0 if marker and getElementType(marker) == "marker" then for i,player in ipairs(getElementsByType("player")) do if isElementWithinMarker(player,marker) then players = players + 1 end end end return players end function MoveObject ( theElm ) if ( getElementType ( theElm ) == "player" ) then if ( eventName == "onMarkerHit" ) then local team = getPlayerTeam ( theElm ) if ( team ) and ( getTeamName ( team ) == teamName ) and ( countPlayersInMarker ( Marker ) <= 1 ) then moveObject ( Object, 1000,x, y, z,0,-90,0 ) end else if ( countPlayersInMarker ( Marker ) == 0 ) then moveObject ( Object, 1000, x, y, z,0,90,0 ) end end end end addEventHandler ( "onMarkerHit", Marker, MoveObject ) addEventHandler ( "onMarkerLeave", Marker, MoveObject ) addEventHandler ( "onPlayerQuit", root, function ( ) if ( isElementWithinMarker ( source, Marker ) ) and ( countPlayersInMarker ( Marker ) == 0 ) then moveObject ( Object, 1000, x, y, z,0,90,0 ) end end )
  5. local x, y, z = 1544.69921875, -1630.7998046875, 13.300000190735 local teamName = "Police" local Object = createObject ( 968, x, y, z, 0, 90, 90 ) local Marker = createMarker ( 1544.32288, -1627.25330, 11.38281, "cylinder", 5, 0, 0, 0, 0 ) function countPlayersInMarker ( marker ) local players = 0 if marker and getElementType(marker) == "marker" then for i,player in ipairs(getElementsByType("player")) do if isElementWithinMarker(player,marker) then players = players + 1 end end end return players end function MoveObject ( theElm ) if ( getElementType ( theElm ) == "player" ) then if ( eventName == "onMarkerHit" ) then local team = getPlayerTeam ( theElm ) if ( team ) and ( getTeamName ( team ) == teamName ) and ( countPlayersInMarker ( Marker ) <= 1 ) then moveObject ( Object, 1500,x, y, z,0,0,90 ) end else if ( countPlayersInMarker ( Marker ) == 0 ) then moveObject ( Object, 1500, x, y, z,0,0,90 ) end end end end addEventHandler ( "onMarkerHit", Marker, MoveObject ) addEventHandler ( "onMarkerLeave", Marker, MoveObject ) addEventHandler ( "onPlayerQuit", root, function ( ) if ( isElementWithinMarker ( source, Marker ) ) and ( countPlayersInMarker ( Marker ) == 0 ) then moveObject ( Object, 1500, x, y, z,0,0,90 ) end end )
  6. ped = createPed( 247, x, y, z, 200 )
  7. جرب local groupName = 'WAWI' local health = {} Door = createObject(980,1838.0999755859,888.29998779297,15.300000190735,0,0,90) markerDoor = createMarker(1838.0999755859,888.29998779297,15.300000190735,"cylinder",13,0,0,0,0) health1 = createMarker(1948.3400878906,899.49377441406,13.3,"cylinder",2,255,0,0,255) health2 = createMarker(0,0,0,"cylinder",0,0,0,0,0) eH = createMarker(1950.4020996094,892.09954833984,15,"arrow",1.5,0,255,0,255) oH = createMarker(2233.8999023438,1714.5999755859,1013.803527832,"arrow",2,0,255,0,255) setElementDimension( oH, 20 ) setElementInterior( oH, 1 ) createBlip(1893.8000488281,888.29998779297,13.5,23) fix = createMarker(1885.9619140625,907.9404296875,13,"cylinder",4,0,0,0,255) addEventHandler("onMarkerHit",root, function ( hPlayer ) if ( source == markerDoor ) then if getElementData( hPlayer, 'gang' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then moveObject( Door, 500,1838.0999755859,888.29998779297,20 ) else outputChatBox( 'Only '..groupName..' !', hPlayer, 255, 0, 255 ) end elseif ( source == health1 ) then if getElementData( hPlayer, 'gang' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then fixVehicle( getPedOccupiedVehicle( hPlayer ) ) setPedArmor( hPlayer, 100 ) setElementHealth( hPlayer, 100 ) end elseif ( source == eH ) then if getElementData( hPlayer, 'gang' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' and not isPedInVehicle( hPlayer ) then setElementDimension( hPlayer, 20 ) setElementPosition( hPlayer, 2234,1710,1012 ) setElementInterior( hPlayer, 1 ) setPedArmor( hPlayer, 100 ) setElementHealth( hPlayer, 100 ) outputChatBox('Welcome '..getPlayerName( hPlayer )..' !', hPlayer, 0, 255, 0 ) else outputChatBox('Only '..groupName..' !', hPlayer, 0, 255, 0 ) end elseif ( source == oH ) then if getElementData( hPlayer, 'gang' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' and not isPedInVehicle( hPlayer ) then setElementDimension( hPlayer, 0 ) setElementPosition( hPlayer, 1944,892,15 ) setElementInterior( hPlayer, 0 ) outputChatBox('See You Soon '..getPlayerName( hPlayer )..' !', hPlayer, 0, 255, 0 ) end elseif ( source == fix ) then if getElementData( hPlayer, 'gang' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then fixVehicle( getPedOccupiedVehicle( hPlayer ) ) outputChatBox('Your Car Has Been Fixed !',hPlayer,0,255,0) end end end ) addEventHandler("onMarkerLeave",root, function ( hPlayer ) if ( source == markerDoor ) then if getElementData( hPlayer, 'gang' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then moveObject(Door,500,1838.0999755859,888.29998779297,15.300000190735) end end end ) onWasted = function() if getPlayerTeam( source ) and getTeamName( getPlayerTeam( source ) ) == 'No Team' and getElementData ( source , "gang" ) == groupName then function sp( source ) setElementDimension( source, 20 ) setPedSkin( source, 34 ) setElementPosition( source, 2236,1675,1009 ) setElementInterior( source, 1 ) setPedArmor( source, 100 ) end setTimer(sp,1000,1,source) end end addEventHandler ( "onPlayerSpawn", getRootElement(), onWasted )
  8. ذا كيلر حبيبي انت الاروع ,, واشكرك على المرور
  9. وشكراً على مرورك Eissa تسلم حبي
  10. لبى قلبك يازاحف شكراً على مرورك
  11. poor اشكرك على المرور الرائع اخي
  12. يسلموو ابو شنب .. واشكر لك مرورك
  13. وشكراً على المرور . shwaeki يعطيك العافية اخي
  14. تسلم لي مستر تزوير ,, وشاكر لك مرورك
  15. مشكور على النصيحة ياكنق .وتسلم على مرورك
  16. السلام عليكم ورحمه الله وبركاته كيفكم ان شاءالله بخير اليـوم حـاب اسـدح لكـم مـود تسجيل الدخـول وان شـاءالله ينـاال اعجـابكم رابط التحميل https://community.multitheftauto.com/index.php?p=resources&s=details&id=8335
  17. اول شي سوي تسجيل جديد وبعدين سجل دخول وان شاءالله يضبط
  18. ضبط معي ماقصرت,, اما بالنسبة للكود هذا صح لما اللاعب يسجل باسم حساب موجود اصلاً مايسجل. طيب ليش يطلع بالشات انه سجل؟ addEvent('onRegister',true) addEventHandler('onRegister',root, function (user,pass) local account = getAccount(user,pass) if ( account ) then outputChatBox("* This Account is Already Used",source,255,0,0) else addAccount(user,pass) outputChatBox("UserName: " .. user .. " PassWord : " .. pass,source,0,150,255) end end )
  19. اي صح شكرا على التوضيح
  20. addEventHandler ("onClientGUIClick", root, function() if ( source == Button[1] ) then triggerServerEvent('onlogin',localPlayer, guiGetText(Edit[1]), guiGetText(Edit[2])) elseif ( source == Button[2] ) then triggerServerEvent('onregister',localPlayer, guiGetText(Edit[1]), guiGetText(Edit[2])) end end )
  21. السلام عليكم ورحمة الله لاهنتم ابي كود التسجيل هذا يرفض تسجيل اللاعب اذا كان الباسورد اقل من خمسة ارقام وبرضو نفس الطريقة مع اليوزر مع مخرج الشات وشكرا addEvent('onRegister',true) addEventHandler('onRegister',root, function (user,pass) local account = getAccount(user,pass) if ( account ) then outputChatBox("* This Account is Already Used",source,255,0,0) else addAccount(user,pass) outputChatBox("UserName: " .. user .. " PassWord : " .. pass,source,0,150,255) end end )
  22. createMarker guiSetVisible showCursor onClientMarkerHit
×
×
  • Create New...