Jump to content

طلب كود / عند دخول مكان معين تجي لوحة و عند الخروج تروح


Recommended Posts

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

بغيت كود لما تدخل ساحة القتال تجيك لوحة

و لما تخرج ممن ساحة القتال

تروح الاسلحة و اي شيء مطلوب ؟؟

Link to comment

sojn = createMarker ( 210.99588012695, 1857.5511474609, 31.168750762939, "corona", 10.0, 0, 0, 255, 0 )----صنع الماركر والاحداثيات 
  
  
function ent ( thePlayer, matchingDimension ) 
    guiSetVisible(أسم اللوحه, true) 
end 
addEventHandler ( "onClientMarkerHit", sojn, ent ) 
  
  
function onLeave ( thePlayer, matchingDimension ) 
    guiSetVisible(أسم اللوحه, false)    
end 
addEventHandler ( "onMarkerLeave", sojn, onLeave ) 
  
Link to comment
sojn = createMarker ( 210.99588012695, 1857.5511474609, 31.168750762939, "corona", 10.0, 0, 0, 255, 0 )----صنع الماركر والاحداثيات 
  
  
function ent ( thePlayer, matchingDimension ) 
    guiSetVisible(أسم اللوحه, true) 
end 
addEventHandler ( "onClientMarkerHit", sojn, ent ) 
  
  
function onLeave ( thePlayer, matchingDimension ) 
    guiSetVisible(أسم اللوحه, false)    
end 
addEventHandler ( "onMarkerLeave", sojn, onLeave ) 
  

ماودك تذكر حقوق تي تي ؟

Link to comment
sojn = createMarker ( 210.99588012695, 1857.5511474609, 31.168750762939, "corona", 10.0, 0, 0, 255, 0 )----صنع الماركر والاحداثيات 
  
  
function ent ( thePlayer, matchingDimension ) 
    guiSetVisible(أسم اللوحه, true) 
end 
addEventHandler ( "onClientMarkerHit", sojn, ent ) 
  
  
function onLeave ( thePlayer, matchingDimension ) 
    guiSetVisible(أسم اللوحه, false)    
end 
addEventHandler ( "onMarkerLeave", sojn, onLeave ) 
  

حقوق؟

والله انه انا الي مسويه اقسم بالله انه انا

اصلا ما شفت مشاركة تيتي

ماودك تذكر حقوق تي تي ؟

Link to comment

جــرب

  
function() 
  
  
    local Sphere = createColSphere ( x, y, z, 1 ) then   ------ الاحداثيات x y z 
     
    guiSetVisible ( اسم النافدة, true );   
     
    showCursor(true); 
  
   function Sphere_Enter ( thePlayer, SphereDimension ); 
        if getElementType ( thePlayer ) == "player" then  
               
                local name = getPlayerName ( thePlayer ); 
            
                outputChatBox ( name.." دخل الساحة!", getRootElement(), 255, 255, 109 ); 
        end; 
end; 
    addEventHandler ( "onColShapeHit", Sphere , Sphere_Enter ); 
  
  
    function Sphere_Exit ( thePlayer, SphereDimension ); 
        if getElementType ( thePlayer ) == "player" then  
  
            if isPlayerDead ( thePlayer ) ~= true then 
             
            guiSetVisible ( اسم النافدة, false ); 
     
            showCursor(false); 
     
            local name = getPlayerName ( thePlayer ); 
                
            outputChatBox ( name.." خرج من الساحة!", getRootElement(), 255, 255, 109 ); 
            end; 
        end; 
end; 
    addEventHandler ( "onColShapeLeave", Sphere, Sphere_Exit ); 

لين تبي ياخد اسلحة الاعب استخدم الوظيفه

takeAllWeapons ----- سيرفر فقط .! 

و سو لها ترايقر سيرفر

Link to comment

استخدم ذي

createColRectangle -- لعمل منطقه 
bindKey -- لتركيب زر للاعب اذا دخل 
unbindKey -- لابعاد الزر اذا خرج 
"onColShapeHit" -- افنت اذا دخل المنطقه 
"onColShapeLeave" -- افنت اذا خرج من المنطقه 
takeAllWeapons -- لسحب الاسلحه اذا خرج من المنطقه 
getElementType -- للتاكد من نوع الي دخل المنطقه يمكن تكون سياره 

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