L3yr Posted February 28, 2017 Share Posted February 28, 2017 السلام عليكم انا عامل تيم ولما بكتب فى f8 noteam دا اسم التيم باخد التيم والاسكين وكل حاجا بس لون اسمى مش بيتغير للون الفريق عوزو لما واحد يفتح القائمه الى بتشوف فيها البنج والساعات والتيمات يشوف اسمى زى لون التيم الى انا فيه ويشوف جنب اسمى اسم التيم اسف انى طولت عليكو هذه التيم function TheInicio() exports.scoreboard:scoreboardAddColumn("Occupation",true) outputDebugString ( "NoTeam Job Beta v.1.0 Made by Clipper.-6th Started!!" ) end team = createTeam ("NoTeam", 333, 333, 333) function joinCriminalTeam(player) local team = getTeamFromName ("NoTeam") if (team) then setPlayerTeam (player,team) setElementModel (player, 0) getTeamColor (player, NoTeam) setBlipColor (player, NoTeam) setTeamFriendlyFire ( team, true ) setElementData ( localPlayer, "Occupation", "NoTeam" ) setPlayerNametagColor ( localPlayer, 333,333,333 ) end end addEvent ("noteam", true ) addCommandHandler("noteam",joinCriminalTeam) Link to comment
iMr.WiFi..! Posted February 28, 2017 Share Posted February 28, 2017 كيف تسوي لوكال بلاير في سيرفر ؟ local player = client player = server المهم الكود بعد التصليح : ) function TheInicio() exports.scoreboard:scoreboardAddColumn("Occupation",true) outputDebugString ( "NoTeam Job Beta v.1.0 Made by Clipper.-6th Started!!" ) end team = createTeam ("NoTeam", 333, 333, 333) function joinCriminalTeam(player) local team = getTeamFromName ("NoTeam") if (team) then setPlayerTeam (player,team) setElementModel (player, 0) getTeamColor (player, NoTeam) setBlipColor (player, NoTeam) setTeamFriendlyFire ( team, true ) setElementData ( player, "Occupation", "NoTeam" ) setPlayerNametagColor ( player, 333,333,333 ) end end addEvent ("noteam", true ) addCommandHandler("noteam",joinCriminalTeam) Link to comment
L3yr Posted February 28, 2017 Author Share Posted February 28, 2017 21 minutes ago, iMr.WiFi..! said: كيف تسوي لوكال بلاير في سيرفر ؟ local player = client player = server المهم الكود بعد التصليح : ) function TheInicio() exports.scoreboard:scoreboardAddColumn("Occupation",true) outputDebugString ( "NoTeam Job Beta v.1.0 Made by Clipper.-6th Started!!" ) end team = createTeam ("NoTeam", 333, 333, 333) function joinCriminalTeam(player) local team = getTeamFromName ("NoTeam") if (team) then setPlayerTeam (player,team) setElementModel (player, 0) getTeamColor (player, NoTeam) setBlipColor (player, NoTeam) setTeamFriendlyFire ( team, true ) setElementData ( player, "Occupation", "NoTeam" ) setPlayerNametagColor ( player, 333,333,333 ) end end addEvent ("noteam", true ) addCommandHandler("noteam",joinCriminalTeam) الف شكرا اخى Link to comment
L3yr Posted February 28, 2017 Author Share Posted February 28, 2017 6 minutes ago, iMr.WiFi..! said: العفو : ) اخى ممكن استفسار اخير انا عامل اللوحه ولما بضغط زر join مش بينضم للفريق --------client local marker = createMarker (-1625.76404, 676.67517, 7.19012, "cylinder", 1.5, 255, 255, 0, 130 ) police = createBlip (-1625.76404, 676.67517, 7.19012, 30 ,2 ) setBlipVisibleDistance(police , 300) local markerLV = createMarker (2252.5, 2491.8000488281, 10.89999961853, "cylinder", 1.5, 255, 255, 0, 130 ) createBlip (2252.5, 2491.8000488281, 10.89999961853, 30 ,2 ) police = setBlipVisibleDistance(police , 300) local markerSF = createMarker (-219.30000305176, 985, 19.60000038147, "cylinder", 1.5, 255, 255, 0, 130 ) createBlip (-219.30000305176, 985, 19.60000038147, 30 ,2 ) police = setBlipVisibleDistance(police , 300) local marker = createMarker (-1619.0999755859, 683.09997558594, 7.1999998092651, "cylinder", 1.5, 255, 255, 0, 130 ) createBlip (-1619.0999755859, 683.09997558594, 7.1999998092651, 30 ,2 ) police = setBlipVisibleDistance(police , 300) -------------------------------- GUIEditor = { button = {}, label = {}, window = {}, } GUIEditor.window[1] = guiCreateWindow(441, 289, 359, 546, "CUA", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 0.92) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF136FEB") CrimLogo = guiCreateStaticImage(0.03, 0.03, 0.97, 0.80, "Cop_Logo.png", true, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(33, 486, 108, 39, "Join", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "sa-header") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF136FEB") GUIEditor.button[2] = guiCreateButton(213, 486, 108, 39, "Close", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "sa-header") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF136FEB") GUIEditor.label[1] = guiCreateLabel(155, 490, 44, 46, "Police", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 19, 111, 235) guiSetVisible (GUIEditor.window[1], false) ----------------------------------------------- addEventHandler("onClientMarkerHit",markerLV, --عند لمس الماركر المحدد function()--وظيفة guiSetVisible(GUIEditor.window[1],true)--تفتح اللوحة showCursor(true) --نظهر الماوس end --نهاية الوظيفة )--نهاية قوس الحدث -------------------------------------------------- addEventHandler("onClientMarkerHit",markerSF, --عند لمس الماركر المحدد function()--وظيفة guiSetVisible(GUIEditor.window[1],true)--تفتح اللوحة showCursor(true) --نظهر الماوس end --نهاية الوظيفة )--نهاية قوس الحدث addEventHandler("onClientGUIClick",root, --عند الضغط على زر function()--وظيفة if source == GUIEditor.button[1] then triggerServerEvent("JoinPolice",localPlayer) guiSetVisible(GUIEditor.window[1],false)--اغلاق اللوحة showCursor(false)--اخفاء الماوس elseif (source == GUIEditor.button[2]) then--ان كان الزر = زر الاغلاق guiSetVisible(GUIEditor.window[1],false)--اغلاق اللوحة showCursor(false)--اخفاء الماوس end--نهاية التحقق end--نهاية الوظيفة )--نهاية قوس الحدث -----------server function TheInicio() exports.scoreboard:scoreboardAddColumn("Occupation",true) outputDebugString ( "Police Job Beta v.1.0 Made by Clipper.-6th Started!!" ) end team = createTeam ("Police", 25, 112, 255) function joinCriminalTeam(player) local team = getTeamFromName ("Police") if (team) then setPlayerTeam (player,team) setElementModel (player, 283) getTeamColor (player, Police) setBlipColor (player, Police) setTeamFriendlyFire ( team, true ) setElementData ( player, "Occupation", "Police" ) setPlayerNametagColor ( player, 25,112,255 ) end end addCommandHandler("Police",joinCriminalTeam) addEvent("JoinPolice",true) addEventHandler("JoinPolice",root, function () if getPlayerTeam(source) and getTeamName(getPlayerTeam(source)) ~= "Police" then team = getTeamFromName("Police") setPlayerTeam(source,team) end -- end if getPlayerTeam end -- end the function ) -- end the event ارجو التصحيح Link to comment
iMr.WiFi..! Posted February 28, 2017 Share Posted February 28, 2017 (edited) --------client local marker = createMarker (-1625.76404, 676.67517, 7.19012, "cylinder", 1.5, 255, 255, 0, 130 ) local markerLV = createMarker (2252.5, 2491.8000488281, 10.89999961853, "cylinder", 1.5, 255, 255, 0, 130 ) local markerSF = createMarker (-219.30000305176, 985, 19.60000038147, "cylinder", 1.5, 255, 255, 0, 130 ) local marker = createMarker (-1619.0999755859, 683.09997558594, 7.1999998092651, "cylinder", 1.5, 255, 255, 0, 130 ) -------------------------------- GUIEditor = { button = {}, label = {}, window = {}, } GUIEditor.window[1] = guiCreateWindow(441, 289, 359, 546, "CUA", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 0.92) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF136FEB") CrimLogo = guiCreateStaticImage(0.03, 0.03, 0.97, 0.80, "Cop_Logo.png", true, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(33, 486, 108, 39, "Join", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "sa-header") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF136FEB") GUIEditor.button[2] = guiCreateButton(213, 486, 108, 39, "Close", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "sa-header") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF136FEB") GUIEditor.label[1] = guiCreateLabel(155, 490, 44, 46, "Police", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 19, 111, 235) guiSetVisible (GUIEditor.window[1], false) ----------------------------------------------- addEventHandler("onClientMarkerHit",markerLV, --عند لمس الماركر المحدد function()--وظيفة guiSetVisible(GUIEditor.window[1],true)--تفتح اللوحة showCursor(true) --نظهر الماوس end --نهاية الوظيفة )--نهاية قوس الحدث -------------------------------------------------- addEventHandler("onClientMarkerHit",markerSF, --عند لمس الماركر المحدد function()--وظيفة guiSetVisible(GUIEditor.window[1],true)--تفتح اللوحة showCursor(true) --نظهر الماوس end --نهاية الوظيفة )--نهاية قوس الحدث addEventHandler("onClientGUIClick",root, --عند الضغط على زر function()--وظيفة if source == GUIEditor.button[1] then triggerServerEvent("JoinPolice",localPlayer) guiSetVisible(GUIEditor.window[1],false)--اغلاق اللوحة showCursor(false)--اخفاء الماوس elseif (source == GUIEditor.button[2]) then--ان كان الزر = زر الاغلاق guiSetVisible(GUIEditor.window[1],false)--اغلاق اللوحة showCursor(false)--اخفاء الماوس end--نهاية التحقق end--نهاية الوظيفة )--نهاية قوس الحدث -----------server function TheInicio() exports.scoreboard:scoreboardAddColumn("Occupation",true) outputDebugString ( "Police Job Beta v.1.0 Made by Clipper.-6th Started!!" ) end team = createTeam ("Police", 25, 112, 255) police = createBlip (-1625.76404, 676.67517, 7.19012, 30 ,2 ) setBlipVisibleDistance(police , 300) police2 = createBlip (2252.5, 2491.8000488281, 10.89999961853, 30 ,2 ) setBlipVisibleDistance(police2 , 300) police3 = createBlip (-219.30000305176, 985, 19.60000038147, 30 ,2 ) setBlipVisibleDistance(police3 , 300) police4 = createBlip (-1619.0999755859, 683.09997558594, 7.1999998092651, 30 ,2 ) setBlipVisibleDistance(police4 , 300) function joinPoliceTeam(player) local team = getTeamFromName ("Police") if (team) then setPlayerTeam (player,team) setElementModel (player, 283) r,g,b = getTeamColor ( Police ) setBlipColor (police, r,g,b) setTeamFriendlyFire ( team, true ) setElementData ( player, "Occupation", "Police" ) setPlayerNametagColor ( player, 25,112,255 ) end end addCommandHandler("Police",joinCriminalTeam) addEvent("JoinPolice",true) addEventHandler("JoinPolice",root, function () if getPlayerTeam(source) and getTeamName(getPlayerTeam(source)) ~= "Police" then executeCommandHandler("Police",source) end end ) Edited February 28, 2017 by iMr.WiFi..! تعديل جربه الحين Link to comment
L3yr Posted February 28, 2017 Author Share Posted February 28, 2017 4 minutes ago, iMr.WiFi..! said: --------client local marker = createMarker (-1625.76404, 676.67517, 7.19012, "cylinder", 1.5, 255, 255, 0, 130 ) police = createBlip (-1625.76404, 676.67517, 7.19012, 30 ,2 ) setBlipVisibleDistance(police , 300) local markerLV = createMarker (2252.5, 2491.8000488281, 10.89999961853, "cylinder", 1.5, 255, 255, 0, 130 ) createBlip (2252.5, 2491.8000488281, 10.89999961853, 30 ,2 ) police = setBlipVisibleDistance(police , 300) local markerSF = createMarker (-219.30000305176, 985, 19.60000038147, "cylinder", 1.5, 255, 255, 0, 130 ) createBlip (-219.30000305176, 985, 19.60000038147, 30 ,2 ) police = setBlipVisibleDistance(police , 300) local marker = createMarker (-1619.0999755859, 683.09997558594, 7.1999998092651, "cylinder", 1.5, 255, 255, 0, 130 ) createBlip (-1619.0999755859, 683.09997558594, 7.1999998092651, 30 ,2 ) police = setBlipVisibleDistance(police , 300) -------------------------------- GUIEditor = { button = {}, label = {}, window = {}, } GUIEditor.window[1] = guiCreateWindow(441, 289, 359, 546, "CUA", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 0.92) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF136FEB") CrimLogo = guiCreateStaticImage(0.03, 0.03, 0.97, 0.80, "Cop_Logo.png", true, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(33, 486, 108, 39, "Join", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "sa-header") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF136FEB") GUIEditor.button[2] = guiCreateButton(213, 486, 108, 39, "Close", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "sa-header") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF136FEB") GUIEditor.label[1] = guiCreateLabel(155, 490, 44, 46, "Police", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 19, 111, 235) guiSetVisible (GUIEditor.window[1], false) ----------------------------------------------- addEventHandler("onClientMarkerHit",markerLV, --عند لمس الماركر المحدد function()--وظيفة guiSetVisible(GUIEditor.window[1],true)--تفتح اللوحة showCursor(true) --نظهر الماوس end --نهاية الوظيفة )--نهاية قوس الحدث -------------------------------------------------- addEventHandler("onClientMarkerHit",markerSF, --عند لمس الماركر المحدد function()--وظيفة guiSetVisible(GUIEditor.window[1],true)--تفتح اللوحة showCursor(true) --نظهر الماوس end --نهاية الوظيفة )--نهاية قوس الحدث addEventHandler("onClientGUIClick",root, --عند الضغط على زر function()--وظيفة if source == GUIEditor.button[1] then triggerServerEvent("JoinPolice",localPlayer) guiSetVisible(GUIEditor.window[1],false)--اغلاق اللوحة showCursor(false)--اخفاء الماوس elseif (source == GUIEditor.button[2]) then--ان كان الزر = زر الاغلاق guiSetVisible(GUIEditor.window[1],false)--اغلاق اللوحة showCursor(false)--اخفاء الماوس end--نهاية التحقق end--نهاية الوظيفة )--نهاية قوس الحدث -----------server function TheInicio() exports.scoreboard:scoreboardAddColumn("Occupation",true) outputDebugString ( "Police Job Beta v.1.0 Made by Clipper.-6th Started!!" ) end team = createTeam ("Police", 25, 112, 255) function joinPoliceTeam(player) local team = getTeamFromName ("Police") if (team) then setPlayerTeam (player,team) setElementModel (player, 283) getTeamColor (player, Police) setBlipColor (player, Police) setTeamFriendlyFire ( team, true ) setElementData ( player, "Occupation", "Police" ) setPlayerNametagColor ( player, 25,112,255 ) end end addCommandHandler("Police",joinCriminalTeam) addEvent("JoinPolice",true) addEventHandler("JoinPolice",root, function () if getPlayerTeam(source) and getTeamName(getPlayerTeam(source)) ~= "Police" then executeCommandHandler("Police",source) end end ) اخى ما ظبطت Link to comment
iMr.WiFi..! Posted February 28, 2017 Share Posted February 28, 2017 Just now, L3yr said: اخى ما ظبطت جربه ثاني مره شوفه عدلته Link to comment
L3yr Posted February 28, 2017 Author Share Posted February 28, 2017 3 minutes ago, iMr.WiFi..! said: جربه ثاني مره شوفه عدلته ما نفعت برضو لما بضغط مش بيدخل التيم ولا يهمك اخى كفايه انك ساعدتنى فى اول سؤال وحاولت فى الثانيه Link to comment
iMr.WiFi..! Posted February 28, 2017 Share Posted February 28, 2017 تقلي هذا الكلام تجبرني اساعدك اكثر واكثر قلي وش يجيك ديبق ؟ Link to comment
L3yr Posted February 28, 2017 Author Share Posted February 28, 2017 والله انك راجل كريم هذه اول صوره لما بفتح اللوحه http://imgur.com/a/bPuln وهذه لما بضغط على كلمهjoin http://imgur.com/a/uVaZT وهذه بعد الضغط مفيش حاجا بتحصل http://imgur.com/a/WKJYq Link to comment
iMr.WiFi..! Posted February 28, 2017 Share Posted February 28, 2017 (edited) اكتب في اف 8 debugscript 3 واضغط على join وصور الشاشة Edited February 28, 2017 by iMr.WiFi..! Link to comment
L3yr Posted February 28, 2017 Author Share Posted February 28, 2017 1 minute ago, iMr.WiFi..! said: اكتب في اف 8 debugscript 3 واضغط على join حاضر اخى 10 minutes ago, iMr.WiFi..! said: اكتب في اف 8 debugscript 3 واضغط على join وصور الشاشة 1http://imgur.com/a/alZPP 2http://imgur.com/a/D9e3L 3http://imgur.com/a/quxiu Link to comment
iMr.WiFi..! Posted February 28, 2017 Share Posted February 28, 2017 نسيت تكتب 3 بعد debugscript 3 Link to comment
L3yr Posted February 28, 2017 Author Share Posted February 28, 2017 10 minutes ago, iMr.WiFi..! said: نسيت تكتب 3 بعد debugscript 3 اه التعديل http://imgur.com/a/VYy9U Link to comment
iMr.WiFi..! Posted February 28, 2017 Share Posted February 28, 2017 اوك حط المود في اسل الادمن Link to comment
L3yr Posted February 28, 2017 Author Share Posted February 28, 2017 1 hour ago, iMr.WiFi..! said: اوك حط المود في اسل الادمن اوك Link to comment
LOAM Posted March 1, 2017 Share Posted March 1, 2017 18 hours ago, iMr.WiFi..! said: اوك حط المود في اسل الادمن بس لو اضافو فى الاسل ادمن محدش هيقدر ياخد وظيفه الشرطه غير الادمن Link to comment
iMr.WiFi..! Posted March 1, 2017 Share Posted March 1, 2017 3 hours ago, LOAM said: بس لو اضافو فى الاسل ادمن محدش هيقدر ياخد وظيفه الشرطه غير الادمن اخوي تصحيح لكلامك , اذا اضافه للأدمن راح ياخذ صلاحية الادمن فقط ومو يأخذه الادمن فقط / : Link to comment
LOAM Posted March 1, 2017 Share Posted March 1, 2017 9 minutes ago, iMr.WiFi..! said: اخوي تصحيح لكلامك , اذا اضافه للأدمن راح ياخذ صلاحية الادمن فقط ومو يأخذه الادمن فقط / : شكرا للتوضيح 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