Jump to content

مسآعدة ##


Recommended Posts

يوم رديت عليك ما شفت كلمه ادمنيه اصلا :lol:

المهم انطرح الموضوع لو تدور كان لقيت ذذ,

تقدر تخليه يعدل من الأدمنيه وهادي ابسط واسهل الطرق

get("weapon") 

in meta.xml

         
               "*weapon" value="القيمة الافتراضية" desc="الوصف"/> 
        

Example

if getPlayerTeam ( player ) ~= getTeamFromName ( get("teamName") ) then -- سطر توضيحي 

         
               "*teamName" value="police" desc="this just for example"/> 
        
Link to comment

فيه طريقة اللي هي

triggerClientEvent 

او الأسهل

setElementData 

مثآل

-- Server Side 
addEventHandler ( "onSettingChange", resourceRoot, 
    function ( setting, old, new ) 
        triggerClientEvent ( root, "onSettingChanged", root, setting, new ) 
    end 
) 

-- Client Side 
addEvent ( "onSettingChanged", true ) 
addEventHandler ( "onSettingChanged", root, 
    function ( setting, value ) 
        guiSetText ( memo, "Setting Name: "..setting.."\nNew Value: "..value ) 
    end 
) 

مثال 2

-- Server Side 
addEventHandler ( "onSettingChange", resourceRoot, 
    function ( setting, old, new ) 
        setElementData ( resourceRoot, setting, new ) 
    end 
) 

-- Client Side 
setTimer (  
    function ( ) 
        guiSetText ( memo, getElementData ( resourceRoot, setting ) or "n/a" ) 
    end 
, 2000, 0 ) 

الأمثلة غير مجربة

Link to comment

اخوي استخدمت أول مثآل

و ضبط معي

بس بالميمو

يجي كذا

[" الي اكتبه من الأدمنيه "]

addEvent ( "onSettingChanged", true ) 
addEventHandler ( "onSettingChanged", root, 
    function ( setting, value ) 
        guiSetText ( ALSHBH.memo[3],value) 
    end 
) 

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