GalaxyExx Posted October 21, 2018 Share Posted October 21, 2018 hey , i want make a clan list that are showed in panel ( each clan has informations like xp , leader , kills , members , online , members .. ) can anyone help me ? Link to comment
Addlibs Posted October 21, 2018 Share Posted October 21, 2018 Here's all the help you deserve based on the effort of your original post: https://wiki.multitheftauto.com/wiki/Introduction_to_Scripting_the_GUI 1 Link to comment
Storm-Hanma Posted October 22, 2018 Share Posted October 22, 2018 Another way is to pay money and done your all scripts by money Link to comment
LilDawage Posted October 22, 2018 Share Posted October 22, 2018 Create Gui Create Girldlist add row (clan name , memebrs , kills , leader) two method to show them : 1/ From your database ('SELECT FROM.. 2/ Form settings (ElementData) Try to learn more lua because no one can help you for free ------------------------------------------------ Link to comment
GalaxyExx Posted October 22, 2018 Author Share Posted October 22, 2018 @lilDawage how can u tell me how i can begin with girldlist Link to comment
LilDawage Posted October 23, 2018 Share Posted October 23, 2018 (edited) -------------------------------------------------------- i cant help more then this sorry i dont know lines of other scriptes ........... galaxy = guiCreateWindow (x,y,w,h,false) Exx = guiCreateGridList (x,y,w,h,false,galaxy) guiGridListAddColumn(Exx ,"Name",0.2) guiGridListAddColumn(Exx ,"Clan",0.2) guiGridListAddColumn(Exx ,"Exp",0.4) guiGridListAddColumn(Exx ,"status",0.2) guiGridListAddColumn(Exx ,"kills",0.2) local row = guiGridListAddRow(Exx) for _, player in ipairs(getElementsByType("player")) do guiGridListSetItemText(Exx ,row,1,player,false, false ) guiGridListSetItemText(Exx,row,2,here Clan player,false, false ) ---------- and same for others Exp and leader and status kust follow orders of rows end i dont know about you Settings Clan and Exp and Rank clan because i dont know the lines of your Scriptes any why use (exports ) to get player Clan or use ElementData if exisit .. Edited October 23, 2018 by LilDawage Link to comment
GalaxyExx Posted October 23, 2018 Author Share Posted October 23, 2018 i'll send u the full scripts in pm that i made and help me to fix it ok Link to comment
GalaxyExx Posted October 24, 2018 Author Share Posted October 24, 2018 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) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now