Master_MTA Posted December 24, 2016 Share Posted December 24, 2016 (edited) وش الخطا هنا شباب function hhs893(thePlayer) if (thePlayer)then if getAccountData(getPlayerAccount(thePlayer),"قائد") or getAccountData(getPlayerAccount(thePlayer),"ownerTeam")or getAccountData(getPlayerAccount(thePlayer),"رئيس") then triggerClientEvent("enbl",thePlayer,"true") else triggerClientEvent("enbl",thePlayer,"false") end local theTeam = getPlayerTeam ( thePlayer ) local players = getPlayersInTeam ( theTeam ) -- Loop through the player table for playerKey, playerValue in ipairs ( players ) do -- kill the player local acc= getPlayerAccount(playerValue) if getAccountData(acc,"قائد")or getAccountData(getPlayerAccount(thePlayer),"قائد") then triggerClientEvent(thePlayer,"openteams",thePlayer,"[قائد]") elseif getAccountData(acc,"ownerTeam")or getAccountData(getPlayerAccount(thePlayer),"ownerTeam") then triggerClientEvent(thePlayer,"openteams",thePlayer,"[Owner]") elseif getAccountData(acc,"رئيس") or getAccountData(getPlayerAccount(thePlayer),"رئيس")then triggerClientEvent(thePlayer,"openteams",thePlayer,"[رئيس]") elseif getAccountData(acc,"مشرف")or getAccountData(getPlayerAccount(thePlayer),"مشرف") then triggerClientEvent(thePlayer,"openteams",thePlayer,"[مشرف]") elseif getAccountData(acc,"عضو")or getAccountData(getPlayerAccount(thePlayer),"عضو") then triggerClientEvent(thePlayer,"openteams",thePlayer,"[عضو]") elseif getAccountData(acc,"مراقب")or getAccountData(getPlayerAccount(thePlayer),"مراقب") then triggerClientEvent(thePlayer"openteams",thePlayer,"[مراقب]") else triggerClientEvent(thePlayer,"openteams",thePlayer,"تحت التجربه") end end end end addCommandHandler ( "Teams", hhs893 ) اذا كان لاعب واحد يزبط في التيم لو اكثر ما تفتح اللوحه كلنت addEvent("enbl",true) addEventHandler("enbl",root,function(gd) if gd =="true" then guiSetEnabled(GUIEditor.button[8],true) guiSetEnabled(GUIEditor.button[9],true) guiSetEnabled(GUIEditor.button[10],true) guiSetEnabled(GUIEditor.button[11],true) guiSetEnabled(GUIEditor.button[12],false) elseif gd == "false" then guiSetEnabled(GUIEditor.button[8],false) guiSetEnabled(GUIEditor.button[9],false) guiSetEnabled(GUIEditor.button[10],false) guiSetEnabled(GUIEditor.button[11],false) guiSetEnabled(GUIEditor.button[12],true) end end ) addEvent("openteams",true) addEventHandler("openteams",root,function(llsk) if guiGetVisible(GUIEditor.window[3]) == false then guiSetVisible(GUIEditor.window[3],true) showCursor(true) local players221 = getPlayersInTeam (getPlayerTeam(source)) guiGridListClear(GUIEditor.gridlist[3]) for playerKey, playerValue in ipairs ( players221 ) do row23 = guiGridListAddRow ( GUIEditor.gridlist[3] ) guiGridListSetItemText ( GUIEditor.gridlist[3], row23, 1, getPlayerName(playerValue), false, false ) guiGridListSetItemText ( GUIEditor.gridlist[3], row23, 2, llsk, false, false ) guiGridListSetItemColor ( GUIEditor.gridlist[3], row23, 1, getTeamColor ( getPlayerTeam(playerValue) ) ) end else local players221 = getPlayersInTeam ( getPlayerTeam(source) ) for playerKey, playerValue in ipairs ( players221 ) do guiGridListSetItemText ( GUIEditor.gridlist[3], row23, 1, getPlayerName(playerValue), false, false ) guiGridListSetItemColor ( GUIEditor.gridlist[3], row23, 1, getTeamColor ( getPlayerTeam(playerValue) ) ) end guiSetVisible(GUIEditor.window[3],false) showCursor(false) end end ) والدي بق يظهر الخطا باللوب اللي بجانب السيرفر @MR.GRAND @3NAD Edited December 24, 2016 by Master_MTA Link to comment
Master_MTA Posted December 25, 2016 Author Share Posted December 25, 2016 شباب اي رد ماافي Link to comment
Abu-Solo Posted December 25, 2016 Share Posted December 25, 2016 الصراحة ما عرفت وش المشكله منه, حاول انك تشيل اللوب حق اللاعبين وجرب اذا بيشتغل ولالا Link to comment
Master_MTA Posted December 25, 2016 Author Share Posted December 25, 2016 ++_++ بيشتغل بس ما راح ينفذ الوظيفه اللي ابيها Link to comment
Abu-Solo Posted December 25, 2016 Share Posted December 25, 2016 طيب جربت انك تسوي تحقق من وظيفة غير تحقق اللوب ذا Link to comment
Master_MTA Posted December 25, 2016 Author Share Posted December 25, 2016 ما فهمت شي #Edit: @Mr.CoR @Tete omar Link to comment
Master_MTA Posted December 25, 2016 Author Share Posted December 25, 2016 +_+ خلاض شباب جاتني فكره بسويها تعوض الموضوع ذا بما ان مافي احد يعرف بروب صلاه يغلق 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