Jump to content

مشكله


MA[S]RIY

Recommended Posts

addEventHandler('onClientGUIClick',root,
function ()
if source == send then
local gg = guiGridListAddRow(gridChat)
local edit = guiGetText(GUIEditor.edit[1])
if getElementData (localPlayer,"MUTED") then return 
guiGridListSetItemText(gridChat,gg, 1,"* ميوت ...", false, false)
end

    if edit ~= '' then
    triggerServerEvent("sendmessage_",localPlayer,edit)
	 guiSetEnabled ( send, false )
       setTimer ( guiSetEnabled, 1000 , 1, send, true )
	local msa1 = guiCheckBoxGetSelected(player)
	local msa12 = guiCheckBoxGetSelected(sporter)
	
if ( guiCheckBoxGetSelected( GUIEditor.checkbox[2] ) == true ) and (msa1 == true ) then
CheckBox = "player"
chat = "true"

elseif ( guiCheckBoxGetSelected( GUIEditor.checkbox[2] ) == true ) and (msa12 == true ) then
CheckBox = "sporter"
chat = "true"
			
		
		
elseif (guiCheckBoxGetSelected(player) == true)then
CheckBox = "player"
chat = "false"
			
elseif(guiCheckBoxGetSelected(sporter) == true) then
CheckBox = "sporter"
chat = "false"

else		
outputChatBox("اختر لاعب ام داعم",255,0,0)
end
end
end
end
)

--server

addEvent("sendmessage_",true)
addEventHandler("sendmessage_",root,function ( text )

triggerClientEvent( root, "sendmessage", root, getPlayerName(source):gsub("#%x%x%x%x%x%x",""), text )

end
)

--client


addEvent("sendmessage",true)
addEventHandler("sendmessage",root, function( Name, Text )
    local gg = guiGridListAddRow(gridChat)
	
if  CheckBox == "player"  and  chat == "true" then
	outputChatBox( "*[نظام الدعم]x [عام]x [لاعب]x "..Name..":#FFFFFF "..Text,236,143,12,true )

	guiGridListSetItemText(gridChat,gg, 1,"["..hours..":"..minutes..":"..second.."][Player]x "..Name..": "..tostring(Text), false, false)
    guiGridListSetItemColor(gridChat,gg, 1, 236, 143, 12, 255)
	    guiSetText ( GUIEditor.edit[1],"")

			
elseif CheckBox == "sporter"  and  chat == "true" then
	outputChatBox( "*[نظام الدعم]x [عام]x [داعم]x "..Name..":#FFFFFF "..Text,236,143,12,true )

	guiGridListSetItemText(gridChat,gg, 1,"["..hours..":"..minutes..":"..second.."][Supporter]x "..Name..": "..tostring(Text), false, false)
    guiGridListSetItemColor(gridChat,gg, 1, 0, 255, 0, 255)
	    guiSetText ( GUIEditor.edit[1],"")
		
		
		
		
elseif CheckBox == "player"  and  chat == "false" then
	guiGridListSetItemText(gridChat,gg, 1,"["..hours..":"..minutes..":"..second.."][Player]x "..Name..": "..tostring(Text), false, false)
    guiGridListSetItemColor(gridChat,gg, 1, 236, 143, 12, 255)
	    guiSetText ( GUIEditor.edit[1],"")

			
elseif CheckBox == "sporter"  and  chat == "false" then
	guiGridListSetItemText(gridChat,gg, 1,"["..hours..":"..minutes..":"..second.."][Supporter]x "..Name..": "..tostring(Text), false, false)
    guiGridListSetItemColor(gridChat,gg, 1, 0, 255, 0, 255)
	    guiSetText ( GUIEditor.edit[1],"")
      
end
end
)

ارجو حل المشكله !!

Link to comment

شوف كودك الاولي مو حق المتغيرات دا

انت مستخدم قيمه معدومه ال

player 

و انت هيك لو حطيتها لوكال بلاير بتيجي حسب كل شخص وش مختار

يعني التحقق من الشيك بوكس يكون مع التريقر 

مادري لو فهمتني 

Link to comment
3 hours ago, #Soking said:

شوف كودك الاولي مو حق المتغيرات دا

انت مستخدم قيمه معدومه ال

player 

و انت هيك لو حطيتها لوكال بلاير بتيجي حسب كل شخص وش مختار

يعني التحقق من الشيك بوكس يكون مع التريقر 

مادري لو فهمتني 

الي فهمتو

انت تقصد اسوي التحقق من التشيك بوكس

قبل ارسال الترايقر

طيب كذا برسل ترايقرات كثير

لكل تشيك بوكس ترايقر مختلف

ولا شو تقصد ؟

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