Jump to content

meta.xml سؤال


oPIXz

Recommended Posts

Posted

السلام عليكم

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

كيف؟

حاولت كذا

  
MAX_PLAYERS = get("*MAX_PLAYERS") 

والميتا

    
        "*MAX_PLAYERS" value="5" friendlyname="Max team players" group="Teams settings" desc="" /> 
    

بس مايعدل اذا غيرته!؟

Posted
السلام عليكم

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

كيف؟

حاولت كذا

  
MAX_PLAYERS = get("*MAX_PLAYERS") 

والميتا

    
        "*MAX_PLAYERS" value="5" friendlyname="Max team players" group="Teams settings" desc="" /> 
    

بس مايعدل اذا غيرته!؟

تاكد انها سيرفر

  
MAX_PLAYERS = get("*MAX_PLAYERS") 

Posted

متاكد سيرفر

يا تيتي مافهمت انت

ابي اعدل عليها متى ما ابي من اعدادات السكربت

بس اللي عندي فوق مايتغير

Posted
متاكد سيرفر

يا تيتي مافهمت انت

ابي اعدل عليها متى ما ابي من اعدادات السكربت

بس اللي عندي فوق مايتغير

انت تقصد من اعدادات المود من الادمنية؟

Posted
متاكد سيرفر

يا تيتي مافهمت انت

ابي اعدل عليها متى ما ابي من اعدادات السكربت

بس اللي عندي فوق مايتغير

انت تقصد من اعدادات المود من الادمنية؟

يب الادمنية

Posted
يب الادمنية

انا مدري وش تبي تسوي لكن شف هذي مشاركة قديمة لي يمكن تفيدك :

meta

>    name='*KeyOpen' friendlyname=' Key Open Window' value='F5' />>

server-side

setElementData ( resourceRoot, 'Key', get ( 'KeyOpen' ) ) 

client-side

getElementData ( resourceRoot, 'Key' ) -- حطها محل الزر 

Posted

تسلم ياعاشق بس ماظبط حاولت

عشان تفهم اكثر انا عندي فالكلنت

  
MAX_PLAYERS = 1 --- مثال 
function team1Choosen() 
    if countPlayersInTeam(teams[1]) == MAX_PLAYERS then 
        outputChatBox("[R-League]:#ffffff This team is currently full!", 255, 0, 0, true) 
    else 
    serverCall('setPlayerTeam', localPlayer, teams[1]) 
    if not guiGetVisible(a_window) then 
        showCursor(false) 
    end 
    guiSetVisible(c_window, false) 
    outputChatBox("You've joined "..getTeamName(teams[1]).." , F3 to toggle your team.", 255, 100, 100, true) 
    end 
end 

انا ابي الماكس بلير مايكون ثابت اغيره من اعدادات السكربت بالادمنية فهمت؟

Posted (edited)

* لول للحين لاحظت انه حاط

هنا .. :

MAX_PLAYERS = get("*MAX_PLAYERS") 

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

Edited by Guest
Posted

حبيبي زاحف ماظبط عدلت ولا ظبط

عاشق الشرق

هذا اللي عدلته اول

السيرفر

resourceRoot = getResourceRootElement(getThisResource()) 
setElementData ( resourceRoot, 'Key', get ( 'MAX_PLAYERS' ) ) 

والكلنت

  
checkplayers = getElementData ( resourceRoot, 'Key' ) 
      
    function team1Choosen() 
        if countPlayersInTeam(teams[1]) == checkplayers then 
            outputChatBox("[R-League]:#ffffff This team is currently full!", 255, 0, 0, true) 
        else 
        serverCall('setPlayerTeam', localPlayer, teams[1]) 
        if not guiGetVisible(a_window) then 
            showCursor(false) 
        end 
        guiSetVisible(c_window, false) 
        outputChatBox("You've joined "..getTeamName(teams[1]).." , F3 to toggle your team.", 255, 100, 100, true) 
        end 
    end 
  

Posted

شغال تمام بس لازم تسوي رستارت عشان تحدث الداتا

او سو طريقة تحديث من دون رستارت :

Meta

>    name='*MAX_PLAYERS' value='10' />>

Server Side

setElementData( resourceRoot, 'MAX_PLAYERS', get( 'MAX_PLAYERS' ) ) 

Client Side

getElementData( resourceRoot, 'MAX_PLAYERS' ) 

Posted

قلبتوا راسي

ماظبط ؟ عاشق التعديل من الاساس ماظبط ريستارت وبدون ريستارت

طيب يا شباب لو بغيت اسويه بنافذة تكون القيمة داخل ايدت

  
        max = getElementData(root, 'max_players') 
        ApplyButton = guiCreateButton(135, 135, 100, 30, 'Apply', false, tab_r) 
        Max_edit = guiCreateEdit(75, 35, 110, 20, max, false, tab_r) 
        addEventHandler("onClientGUIClick", ApplyButton, Applychanges, false) 
  

function Applychanges() 
    local newValue = guiGetText(Max_edit) 
    setElementData(root, 'max_players', newValue) 
end 

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

بس اذا غيرت الرقم وسويت حفظ يخرب ؟ مايشتغل

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