Jump to content

x[تصحيح]xبخصوص اللوب


Recommended Posts

وش الخطا هنا شباب

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