
GalaxyExx
Members-
Posts
11 -
Joined
-
Last visited
Everything posted by GalaxyExx
-
مش فاهم ممكن تشرحلي
-
و اسم اللاعب leader اي لاعب يقدر يدوس على الازرار عايز اخلي الازرار مفتوحة بس لي واخد
-
لا مش عايز كدا . المشكلة اي لاعب يقدر يدوس على الازرار انا عايز بس اخلي لي معاه رتبة ليدر في المود داه و لي اسمه مكتوب في الملف بس يقدروا يدوسو على الازرار clan.rank & player.key function toggleClanControl( source ) if(getElementsByType("player")) then if not guiGetVisible( Clan.Window[1] ) then showCursor ( true ) guiSetVisible( Clan.Window[1], true ) guiGridListClear ( Clan.Gridlist[1] ) if ( column ) then guiGridListClear ( Clan.Gridlist[1] ) for _,v in ipairs(getElementsByType("player"))do local row = guiGridListAddRow(Clan.Gridlist[1]) local playerName = getPlayerName(v) guiGridListSetItemText(Clan.Gridlist[1],row,column,playerName,false,false) end end if getElementData(localPlayer, "clan.rank") == "leader" or getElementData(localPlayer, "player.key") == "Galaxy" then guiSetEnabled(Clan.Button[1], true) --Add guiSetEnabled(Clan.Button[2], true) --Kick guiSetEnabled(Clan.Button[3], true) --promote guiSetEnabled(Clan.Button[4], true) --demote else guiSetEnabled(Clan.Button[1], false) guiSetEnabled(Clan.Button[2], false) guiSetEnabled(Clan.Button[3], false) --promote guiSetEnabled(Clan.Button[4], false) --demote end else showCursor ( false ) guiSetVisible( Clan.Window[1], false ) end end end bindKey( "H", "down", toggleClanControl ) addCommandHandler("clan", toggleClanControl)
-
عايز اخلي بس لي معاه رانك ليدر او اسمه لي مكتوب في الملف يقدروا يدوسوا على الازرار promote & demote & kick & add
-
function toggleClanControl( source ) if(getElementsByType("player")) then if not guiGetVisible( Clan.Window[1] ) then showCursor ( true ) guiSetVisible( Clan.Window[1], true ) guiGridListClear ( Clan.Gridlist[1] ) if ( column ) then guiGridListClear ( Clan.Gridlist[1] ) for _,v in ipairs(getElementsByType("player"))do local row = guiGridListAddRow(Clan.Gridlist[1]) local playerName = getPlayerName(v) guiGridListSetItemText(Clan.Gridlist[1],row,column,playerName,false,false) end end if getElementData(localPlayer, "clan.rank") == "leader" or getElementData(localPlayer, "player.key") == "Galaxy" then guiSetEnabled(Clan.Button[1], true) --Add guiSetEnabled(Clan.Button[2], true) --Kick guiSetEnabled(Clan.Button[3], true) --promote guiSetEnabled(Clan.Button[4], true) --demote else guiSetEnabled(Clan.Button[1], false) guiSetEnabled(Clan.Button[2], false) guiSetEnabled(Clan.Button[3], false) --promote guiSetEnabled(Clan.Button[4], false) --demote end else showCursor ( false ) guiSetVisible( Clan.Window[1], false ) end end end bindKey( "H", "down", toggleClanControl ) addCommandHandler("clan", toggleClanControl)
-
username & و صاحب رانك ليدر leader يقدر يدوس على الازرار kick / promote / demote / add السلام عليكم . عندي مشكلة ، عايز اخلي بس اسماء الاعبين function toggleClanControl( source ) if(getElementsByType("player")) then if not guiGetVisible( Clan.Window[1] ) then showCursor ( true ) guiSetVisible( Clan.Window[1], true ) guiGridListClear ( Clan.Gridlist[1] ) if ( column ) then guiGridListClear ( Clan.Gridlist[1] ) for _,v in ipairs(getElementsByType("player"))do local row = guiGridListAddRow(Clan.Gridlist[1]) local playerName = getPlayerName(v) guiGridListSetItemText(Clan.Gridlist[1],row,column,playerName,false,false) end end if getElementData(localPlayer, "clan.rank") == "leader" or getElementData(localPlayer, "player.key") == "Galaxy" then guiSetEnabled(Clan.Button[1], true) --Add guiSetEnabled(Clan.Button[2], true) --Kick guiSetEnabled(Clan.Button[3], true) --promote guiSetEnabled(Clan.Button[4], true) --demote else guiSetEnabled(Clan.Button[1], false) guiSetEnabled(Clan.Button[2], false) guiSetEnabled(Clan.Button[3], false) --promote guiSetEnabled(Clan.Button[4], false) --demote end else showCursor ( false ) guiSetVisible( Clan.Window[1], false ) end end end bindKey( "H", "down", toggleClanControl ) addCommandHandler("clan", toggleClanControl)
-
i have a little problem . i want only who got rank.leader & username of player that is added on client is allowed to add / kick / promote / demote function toggleClanControl( source ) if(getElementsByType("player")) then if not guiGetVisible( Clan.Window[1] ) then showCursor ( true ) guiSetVisible( Clan.Window[1], true ) guiGridListClear ( Clan.Gridlist[1] ) if ( column ) then guiGridListClear ( Clan.Gridlist[1] ) for _,v in ipairs(getElementsByType("player"))do local row = guiGridListAddRow(Clan.Gridlist[1]) local playerName = getPlayerName(v) guiGridListSetItemText(Clan.Gridlist[1],row,column,playerName,false,false) end end if getElementData(localPlayer, "clan.rank") == "leader" or getElementData(localPlayer, "player.key") == "Galaxy" then guiSetEnabled(Clan.Button[1], true) --Add guiSetEnabled(Clan.Button[2], true) --Kick guiSetEnabled(Clan.Button[3], true) --promote guiSetEnabled(Clan.Button[4], true) --demote else guiSetEnabled(Clan.Button[1], false) guiSetEnabled(Clan.Button[2], false) guiSetEnabled(Clan.Button[3], false) --promote guiSetEnabled(Clan.Button[4], false) --demote end else showCursor ( false ) guiSetVisible( Clan.Window[1], false ) end end end bindKey( "H", "down", toggleClanControl ) addCommandHandler("clan", toggleClanControl)