Jump to content

مساعدة


Recommended Posts

Posted (edited)

سلام عليكم انا عندى فى مود محل الملابس الشرطى او المسعف يقدروة يقفوة علية ويختاروة شخصية ازاى امنعهم من تغير السكن بتاعهم

addEvent("displayclothes",true) 
addEventHandler("displayclothes",getRootElement(), 
function(style) 
    triggerClientEvent(client,"displayClothOn",client,clothes,style) 
end) 
local clothtable = {} 
  
  
addEventHandler("onMarkerHit",getRootElement(), 
function(hitElement) 
    if (source == clothmarker1) or (source == clothmarker2) or (source == clothmarker3) then 
        if getElementType(hitElement) == "player" and not isPedInVehicle(hitElement) then 
            triggerClientEvent(hitElement,"showDemClothGui",hitElement) 
        end 
    end 
end) 

local clothmarker1 = createMarker(-2375.373,910.145,44,"cylinder",2,0,200,0,50) 
createBlipAttachedTo(clothmarker1,45) 
local clothmarker2 = createMarker(2090.402,2224.106,10,"cylinder",2,0,200,0,50) 
createBlipAttachedTo(clothmarker2,45) 
local clothmarker3 = createMarker(460.401,-1500.884,29.886,"cylinder",2,0,200,0,50) 
createBlipAttachedTo(clothmarker3,45)  

باقى الاكواد عبارة عن اكواد ملابس واسعار

Edited by Guest
Posted

لازم تتحق اذا كان اللي راح ياخذ الشخصصية شرطي ولا مسعف او حرامي و كذا

يعني مثلا اذا كان اللي راح يشتري التيم حقه شرطة ما يقدر يشتريي

او اذا التيم حقه مسعف ما يشتري او تقدر تتحقق عن طريق الشخصية بستعمال

getElementModel 

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

ييتحقق اذا مانه من تيم الشرطة

Posted (edited)

صعب عليا ولله ياشباب طب عايز شى تانى مش مهم ان الشرطى يقدر يشترى ملابس انا بركب سكنات اقدر اخلى السكن دة الى يقدر يشترية يبقى معاة وظيفة شرطى يعنى الشرطى يروح محل الملابس يشوف سكنات شرطة يشتريها اى سكنات تانية تبقى متوقفة على الى معاة وظيفة الشرطى

يعنى بمعنى اخر النو تيم لو عايز يختار سكن شرطى يبقى ممنوع والعكس صحيح لى الشرطة مو مهم المسعف

او ___

انا بعرف احول سكنات لى ام تى اى هل فى شى كود اكتبة يخلى السكن الى انا اركبة دة يبقى محظور على تيم معين ا

Edited by Guest
Posted (edited)

انا ماشى خطوة خطوة محل الملابس مش لاقى حل او سكريبت شغال يحفظ سكنات سى جى قدرت اعدل علية اوقف تعديل ملابس كنت عايز احذف سكنات عرفت

لكن ظهرت مشكلة تانية ان الشرطى يقدر يتشترى من المحل سكنات شوف المشاركة الى قبل دى قولى ينفع ولا لاء

لو حليت مشكلة ان الشرطى يقدر يغير سكناتة يبقى كدة خلصت محل الملابس هشوف شى تانى

Edited by Guest
Posted
addEvent("displayclothes",true) 
addEventHandler("displayclothes",getRootElement(), 
function(style) 
    triggerClientEvent(client,"displayClothOn",client,clothes,style) 
end) 
local clothtable = {} 
  
  
addEventHandler("onMarkerHit",getRootElement(), 
function(hitElement) 
    if (source == clothmarker1) or (source == clothmarker2) or (source == clothmarker3) then 
        if getElementType(hitElement) == "player" and not isPedInVehicle(hitElement) then 
            if getPlayerTeam ( hitElement ) == getTeamFromName ( "Police" ) or  getPlayerTeam ( hitElement ) == getTeamFromName ( "Medic" ) then return end 
            triggerClientEvent(hitElement,"showDemClothGui",hitElement) 
        end 
    end 
end) 

إلي ضفته سطر 13

Posted (edited)

شوف مثال صغير

     
    addEventHandler('onMarkerHit',markerDoor1, 
    function() 
    if not getTeamName(getPlayerTeam(localPlayer)) == "Police" then -- التحقق انه ب اى تيم غير الشرطه 
    guiSetVisible ( GUIEditor.windows[1] , true ) -- يفتح النافذه 
    showCursor(true) -- يشغل الماوس 
    end 
    end 
    ) 

يا رب تكون المعلومة وصلت

Edited by Guest
Posted
addEvent("displayclothes",true) 
addEventHandler("displayclothes",getRootElement(), 
function(style) 
    triggerClientEvent(client,"displayClothOn",client,clothes,style) 
end) 
local clothtable = {} 
  
  
addEventHandler("onMarkerHit",getRootElement(), 
function(hitElement) 
    if (source == clothmarker1) or (source == clothmarker2) or (source == clothmarker3) then 
        if getElementType(hitElement) == "player" and not isPedInVehicle(hitElement) then 
            if getPlayerTeam ( hitElement ) == getTeamFromName ( "Police" ) or  getPlayerTeam ( hitElement ) == getTeamFromName ( "Medic" ) then return end 
            triggerClientEvent(hitElement,"showDemClothGui",hitElement) 
        end 
    end 
end) 

إلي ضفته سطر 13

يا كلاسيك انا ابيه يفهم مو ياخد كوبى باس :roll:

Posted

منفعشى لان المود حجمة كبير فى اشياء كتير فا اية رائيكم اديكوة رابط تحميل محل الملابس وانتو تعدليوة علية

Posted

منا عملت الى قولتة علية اضيف الى قولتة علية بى الترتيب المود مايشتغل على العموم خلاص مو مهم تسلمووووووووة على المساعدة

Posted

كلاسيك المود بيشتغل سليم بدون اخطاء لكن محلات الملابس مش تبقى موجودة مفيش اخطاء ><

المود بيشتغل عادى

Posted

جرب ده انا مجربتهوش

        addEvent("displayclothes",true) 
    addEventHandler("displayclothes",getRootElement(), 
    function(style) 
        triggerClientEvent(client,"displayClothOn",client,clothes,style) 
    end) 
    local clothtable = {} 
      
      
    addEventHandler("onMarkerHit",getRootElement(), 
    function(hitElement) 
        if (source == clothmarker1) or (source == clothmarker2) or (source == clothmarker3) then 
            if getElementType(hitElement) == "player" and not isPedInVehicle(hitElement) then 
            if not getTeamName(getPlayerTeam(source)) == "Police" and not getTeamName(getPlayerTeam(source)) == "Medic" then 
                triggerClientEvent(hitElement,"showDemClothGui",hitElement) 
            end 
        end 
        end 
    end 
    ) 
     

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...