Jump to content

^^ تــــم ... شكـرا للمبــدعيــن


Recommended Posts

  
x, y, z = 0, 0, 0 -- الإحداثيات 
size = 0 -- الحجم 
createMarker ( x, y, z, "cylinder", size, 0, 0, 0, 0 ) 
  
addEventHandler ( "onClientMarkerHit", getResourceRootElement ( getThisResource ( ) ), 
    function ( thePlayer ) 
        if thePlayer and getElementType ( thePlayer ) == "player" then 
            bindKey ( "F2", "down", ShowWindow ) 
            outputChatBox ( "* يمكنكـ إستخدام لوحة الشوب الآن", 0, 255, 0, true ) 
        end 
    end 
) 
  
addEventHandler ( "onClientMarkerLeave", getResourceRootElement ( getThisResource ( ) ), 
    function ( thePlayer ) 
        if thePlayer and getElementType ( thePlayer ) == "player" then 
            unbindKey ( "F2", "down", ShowWindow ) 
            outputChatBox ( "* تم إغلاق لوحة الشوب", 255, 0, 0, true ) 
        end 
    end 
) 
  
function ShowWindow ( ) 
    if guiGetVisible ( shopWindow ) then 
        guiSetVisible ( shopWindow, false ) 
        showCursor ( false ) 
        guiSetInputEnabled ( false ) 
    else 
        guiSetVisible ( shopWindow, true ) 
        showCursor ( false ) 
        guiSetInputEnabled ( true ) 
        playSound ( "xOSAMA.mp3" ) 
    end 
end 
  

Edited by Guest
Link to comment
function bind() 
     guiSetVisible ( shopWindow ,not guiSetVisible(shopWindow)) 
     showCursor (guiGetVisible(shopWindow)) 
     guiSetInputEnabled(guiGetVisible(shopWindow)) 
     end 
bindKey('f2','down',bind) 
col = createColCuboid( ... ) 
addEventHandler('onClientColShapeHit',col, 
function(hit) 
if(getElementType(hit)=='player')then 
bindKey('f2','down',bind) 
end 
end) 
addEventHandler('onClientColShapeLeave',col, 
function(leave) 
if(getElementType(leave)=='player')then 
unbindKey('f2','down',bind) 
end 
end) 

Link to comment

1 - لما تدخل الماركر يقولك :

* يمكنكـ إستخدام لوحة الشوب الآن

بس لما تطلع من الماركر ما يقول :

* تم إغلاق لوحة الشوب

---------------------------------------

2 - الشوب يبقى شغال ما بيتقفل

Link to comment
  
x, y, z = 0, 0, 0 -- الإحداثيات 
size = 0 -- الحجم 
createMarker ( x, y, z, "cylinder", size, 0, 0, 0, 0 ) 
  
addEventHandler ( "onClientMarkerHit", getResourceRootElement ( getThisResource ( ) ), 
    function ( thePlayer ) 
        if thePlayer and getElementType ( thePlayer ) == "player" then 
            bindKey ( "F2", "down", ShowWindow ) 
            outputChatBox ( "* يمكنكـ إستخدام لوحة الشوب الآن", 0, 255, 0, true ) 
        end 
    end 
) 
  
addEventHandler ( "onClientMarkerLeave", getResourceRootElement ( getThisResource ( ) ), 
    function ( thePlayer ) 
        if thePlayer and getElementType ( thePlayer ) == "player" then 
            unbindKey ( "F2", "down", ShowWindow ) 
            outputChatBox ( "* تم إغلاق لوحة الشوب", 255, 0, 0, true ) 
        end 
    end 
) 
  
function ShowWindow ( ) 
    if guiGetVisible ( shopWindow ) then 
        guiSetVisible ( shopWindow, false ) 
        showCursor ( false ) 
        guiSetInputEnabled ( false ) 
    else 
        guiSetVisible ( shopWindow, true ) 
        showCursor ( true ) 
        guiSetInputEnabled ( true ) 
        playSound ( "xOSAMA.mp3" ) 
    end 
end 
  

Link to comment
-- Client Side 
addEventHandler ( "onClientMarkerLeave", getResourceRootElement ( getThisResource ( ) ), 
    function ( thePlayer ) 
        if thePlayer and getElementType ( thePlayer ) == "player" then 
            unbindKey ( "F2", "down", ShowWindow ) 
            outputChatBox ( "* تم إغلاق لوحة الشوب", 255, 0, 0, true ) 
            triggerServerEvent ( "takeTheWeapons", localPlayer, thePlayer ) 
        end 
    end 
) 
  

-- Server Side 
addEvent ( "takeTheWeapons", true ) 
addEventHandler ( "takeTheWeapons", root, 
    function ( thePlayer ) 
        takeAllWeapons ( thePlayer ) 
    end 
) 
  

Link to comment

عنـــآد جزاك الله خيرا و جعلها في ميزان حسنـآتك

لكن اذا مفيه امر عليك هل فيه طريقة ترجع الاسلحة

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

وشكرا مرة اخرى

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