Ja[B]er[X]Pro Posted February 2, 2016 Share Posted February 2, 2016 السلام عليكم ورحمة الله وبركاته انا سويت كود اين الاخطاء ؟؟ --------client-------- addEventHandler("onClientGUIClick",root, function() if (source = GUIEditor.button[2]) then triggerServerEvent(source,"quit") setPlayerSkin(source,0) end end) addEventHandler("onClientGUIClick",root, function() if (source = GUIEditor.button[1]) guiSetText(Stop Work) if guiGetText(source) = Stop Work then guiSetText("Start Work") end end end) -----------server----------------- addEvent("quit",true addEventHandler("quit",root, function() removePlayerFromTeam(source) end) Link to comment
HassoN Posted February 2, 2016 Share Posted February 2, 2016 --------client-------- addEventHandler("onClientGUIClick",root, function() if (source = GUIEditor.button[2]) then triggerServerEvent(localPlayer,"quit") setPlayerSkin(localPlayer,0) end end) addEventHandler("onClientGUIClick",root, function() if (source = GUIEditor.button[1]) guiSetText(حط اسم الزر هنا,"Stop Work") if guiGetText(source) = "Stop Work" then guiSetText(حط اسم الزر هنا,"Start Work") end end end) -----------server----------------- addEvent("quit",true addEventHandler("quit",root, function() removePlayerFromTeam(source) end) Link to comment
SycroX Posted February 2, 2016 Share Posted February 2, 2016 السلام عليكم ورحمة الله وبركاتهانا سويت كود اين الاخطاء ؟؟ --------client-------- addEventHandler("onClientGUIClick",root, function() if (source = GUIEditor.button[2]) then triggerServerEvent(source,"quit") setPlayerSkin(source,0) end end) addEventHandler("onClientGUIClick",root, function() if (source = GUIEditor.button[1]) guiSetText(Stop Work) if guiGetText(source) = Stop Work then guiSetText("Start Work") end end end) -----------server----------------- addEvent("quit",true addEventHandler("quit",root, function() removePlayerFromTeam(source) end) --#Client addEventHandler("onClientGUIClick", root, function() if source == GUIEditor.button[2] then triggerServerEvent("quit", localPlayer) setPlayerSkin(localPlayer, 0) elseif source == GUIEditor.button[1] then guiSetText(GUIEditor.button[1], "Stop Work") if guiGetText(GUIEditor.button[1]) == "Stop Work" then guiSetText(GUIEditor.button[1], "Start Work") end end end) Link to comment
Ja[B]er[X]Pro Posted February 2, 2016 Author Share Posted February 2, 2016 السلام عليكم ورحمة الله وبركاتهانا سويت كود اين الاخطاء ؟؟ --------client-------- addEventHandler("onClientGUIClick",root, function() if (source = GUIEditor.button[2]) then triggerServerEvent(source,"quit") setPlayerSkin(source,0) end end) addEventHandler("onClientGUIClick",root, function() if (source = GUIEditor.button[1]) guiSetText(Stop Work) if guiGetText(source) = Stop Work then guiSetText("Start Work") end end end) -----------server----------------- addEvent("quit",true addEventHandler("quit",root, function() removePlayerFromTeam(source) end) --#Client addEventHandler("onClientGUIClick", root, function() if source == GUIEditor.button[2] then triggerServerEvent("quit", localPlayer) setPlayerSkin(localPlayer, 0) elseif source == GUIEditor.button[1] then guiSetText(GUIEditor.button[1], "Stop Work") if guiGetText(GUIEditor.button[1]) == "Stop Work" then guiSetText(GUIEditor.button[1], "Start Work") end end end) شكراً لك Link to comment
#Mr.Rajo~,< Posted February 2, 2016 Share Posted February 2, 2016 شوف في احيان ببعض الافنتات يكون واحد حاط ملاحظات مثل تابل مسوي النوت هذي اللي فوق Link to comment
Me[Z]oO Posted February 2, 2016 Share Posted February 2, 2016 يب اخي الكلينت تستخدم localPlayer مثل ايفنت الضغط علي زر السيرفر source مثل ايفنت الخروج من السيارة Link to comment
Me[Z]oO Posted February 2, 2016 Share Posted February 2, 2016 يب اخي الكلينت تستخدم localPlayer مثل ايفنت الضغط علي زر السيرفر source مثل ايفنت الخروج من السيارة 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