Jump to content

تعديل بعض الاكواد ~ تم الافادة


Recommended Posts

بسم الله الرحمن الرحيم

..

السلام عليكم ورحمة الله

اخباركم جميعا من المبرمجين اللي المبتدئين ان شاءالله ططيبين

وككل عام وانتم بخير

والله يعودها علينا وعليكم بخير وسرور ومحبة

ندخل بالموضوع

انا عندي كم كود واحد رسباون وواحد سيارات

المهم كود يشتغل على قروب سستم وكود يشتغل على تيم

انا ابيها اعدلها كلها واخليها لتشتغل لاسل بدال تيم او قروب

اذا تحتاجون تشوفو الككود اطرحة مو مشكلةة

وش اسوي ووش ابدل

مع اني جربت شويت طرق مازانت

ويعطيككم العافيةة :)

Edited by Guest
Link to comment

مثلا ذا ابي اخليه لقروب اسل

  
local Manstermarker = createMarker(825.1142578125, -2162.4404296875, 14.957813262939-1, "cylinder", 1.5, 251, 96, 3, 153) 
addEventHandler("onMarkerHit", Manstermarker, 
    function (player) 
       if getElementType(player) == "player" then 
       if ( isPedInVehicle(player) ) then return end 
       if ( getElementData(MarkerHit, "Group") ~= "[sWAT]" ) then 
       outputChatBox("mr ", player, 255, 255, 0, true) 
       else 
      
      setElementInterior(player, 3) 
      setElementPosition(player, 238.6044921875, 142.86328125, 1003.0234375) 
           end 
      end 
end) 
  
local Manstermarker2 = createMarker(238.65625, 139.2451171875, 1003.0234375-1, "cylinder", 1.5, 251, 96, 3, 153) 
  
setElementInterior(Manstermarker2, 3) 
addEventHandler("onMarkerHit", Manstermarker2, 
    function (MarkerHit) 
           if getElementType(MarkerHit) == "player" then 
if ( getElementData(MarkerHit, "Group") ~= "[sWAT]" ) then 
            
           outputChatBox("mr", MarkerHit, 255, 255, 0, true) 
          else 
          setElementInterior(MarkerHit, 0) 
          setElementPosition(MarkerHit, 825.3173828125, -2159.85546875, 14.516511917114) 
          
        end 
     end   
end) 

Link to comment

Edit Done :

local Manstermarker = createMarker( 825.1142578125, -2162.4404296875, 14.957813262939-1, "cylinder", 1.5, 251, 96, 3, 153 ) 
  
local Manstermarker2 = createMarker( 238.65625, 139.2451171875, 1003.0234375-1, "cylinder", 1.5, 251, 96, 3, 153 ) 
  
setElementInterior ( Manstermarker2, 3 ) 
  
addEventHandler ( 'onMarkerHit', Manstermarker, 
    function (player) 
    if getElementType(player) == "player" then 
        if ( isPedInVehicle(player) ) then return end 
                local accName = getAccountName ( getPlayerAccount ( player ) ) 
                if isObjectInACLGroup ("user."..accName, aclGetGroup ( "smar" ) ) then 
                outputChatBox("mr ", player, 255, 255, 0, true) 
            else 
                setElementInterior(player, 3) 
                setElementPosition(player, 238.6044921875, 142.86328125, 1003.0234375) 
            end 
        end 
    end 
) 
  
addEventHandler ( 'onMarkerHit', Manstermarker2, 
    function (player) 
        if getElementType(player) == "player" then 
                local accName = getAccountName ( getPlayerAccount ( player ) ) 
                if isObjectInACLGroup ("user."..accName, aclGetGroup ( "smar" ) ) then 
                outputChatBox("mr", player, 255, 255, 0, true) 
            else 
                setElementInterior(player, 0) 
                setElementPosition(player, 825.3173828125, -2159.85546875, 14.516511917114) 
            end 
        end   
    end 
) 
Link to comment
انت تبي م آحد يدخله الا قروب معين

ولا م آحد يشوفه الى قروب معين ؟

محد يقدر يدخل الماركر غير اللي اضيف اسم حسابه بقروب انا مسويه بالاسل

يعني مثلا اللي يطلع ب اللوحه الادمنيه تحت اسمة اسم القروب الاسل يفتح له

Link to comment

* اوكي بعدله لك

* smar = طبعاً مايدخله غير الي بقروب ذا

local Manstermarker = createMarker( 825.1142578125, -2162.4404296875, 14.957813262939-1, "cylinder", 1.5, 251, 96, 3, 153 ) 
  
local Manstermarker2 = createMarker( 238.65625, 139.2451171875, 1003.0234375-1, "cylinder", 1.5, 251, 96, 3, 153 ) 
  
setElementInterior ( Manstermarker2, 3 ) 
  
addEventHandler ( 'onMarkerHit', Manstermarker, 
    function (player) 
    if getElementType(player) == "player" then 
        if ( isPedInVehicle(player) ) then return end 
                local accName = getAccountName ( getPlayerAccount ( player ) ) 
                if isObjectInACLGroup ("user."..accName, aclGetGroup ( "smar" ) ) then 
                setElementInterior(player, 3) 
                setElementPosition(player, 238.6044921875, 142.86328125, 1003.0234375) 
            else 
                outputChatBox("mr ", player, 255, 255, 0, true) 
            end 
        end 
    end 
) 
  
addEventHandler ( 'onMarkerHit', Manstermarker2, 
    function (player) 
        if getElementType(player) == "player" then 
                local accName = getAccountName ( getPlayerAccount ( player ) ) 
                if isObjectInACLGroup ("user."..accName, aclGetGroup ( "smar" ) ) then 
                setElementInterior(player, 0) 
                setElementPosition(player, 825.3173828125, -2159.85546875, 14.516511917114) 
            else 
                outputChatBox("mr", player, 255, 255, 0, true) 
            end 
        end   
    end 
) 
Link to comment

يعطيك العافيةة خيو عقيد

وابي هذا نفسس الششي

عدلته انا مانفع

Door11 = createObject(980,828.900390625,-2069.3994140625,14.699999809265,0,0,0) 
markerDoor11 = createMarker(828.900390625,-2069.3994140625,14.699999809265,'cylinder',4,0,0,0,0) 
      
    addEventHandler('onMarkerHit',markerDoor11, 
    function ( hitElement ) 
                      local accName = getAccountName ( getPlayerAccount ( player ) ) 
                if isObjectInACLGroup ("user."..accName, aclGetGroup ( "sma" ) ) then 
  
    moveObject(Door11,500,828.90002441406,-2069.3999023438,20.299999237061) 
    end 
 end 
    ) 
      
    addEventHandler('onMarkerLeave',markerDoor11, 
    function ( hitElement ) 
                        local accName = getAccountName ( getPlayerAccount ( player ) ) 
                if isObjectInACLGroup ("user."..accName, aclGetGroup ( "sma" ) ) then 
         moveObject(Door11,500,828.900390625,-2069.3994140625,14.699999809265) 
    end 
 end 
    ) 

Link to comment

* ابشر بتعديل

* smar = اذا لاعب بـ قروب

سم

Door11 = createObject( 980,828.900390625,-2069.3994140625,14.699999809265,0,0,0 ) 
markerDoor11 = createMarker( 828.900390625,-2069.3994140625,14.699999809265,'cylinder',4,0,0,0,0 ) 
  
addEventHandler ( 'onMarkerHit', markerDoor11, 
    function ( player ) 
        local accName = getAccountName ( getPlayerAccount ( player ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "smar" ) ) then 
            moveObject ( Door11,500,828.90002441406,-2069.3999023438,20.299999237061 ) 
        end 
    end 
) 
  
addEventHandler ( 'onMarkerLeave',markerDoor11, 
    function ( player ) 
        local accName = getAccountName ( getPlayerAccount ( player ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "smar" ) ) then 
            moveObject ( Door11,500,828.900390625,-2069.3994140625,14.699999809265 ) 
        end 
    end 
) 

* x38iD : ضيفني سكايب

عشان اعلمك إذا ماعرفت بشيء

Link to comment
* ابشر بتعديل

* smar = اذا لاعب بـ قروب

سم

Door11 = createObject( 980,828.900390625,-2069.3994140625,14.699999809265,0,0,0 ) 
markerDoor11 = createMarker( 828.900390625,-2069.3994140625,14.699999809265,'cylinder',4,0,0,0,0 ) 
  
addEventHandler ( 'onMarkerHit', markerDoor11, 
    function ( player ) 
        local accName = getAccountName ( getPlayerAccount ( player ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "smar" ) ) then 
            moveObject ( Door11,500,828.90002441406,-2069.3999023438,20.299999237061 ) 
        end 
    end 
) 
  
addEventHandler ( 'onMarkerLeave',markerDoor11, 
    function ( player ) 
        local accName = getAccountName ( getPlayerAccount ( player ) ) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "smar" ) ) then 
            moveObject ( Door11,500,828.900390625,-2069.3994140625,14.699999809265 ) 
        end 
    end 
) 

* x38iD : ضيفني سكايب

عشان اعلمك إذا ماعرفت بشيء

يعطيكك العافية خيو .. والله يسم عدوكك

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...