Abo-Al3ZaB Posted May 1, 2016 Author Share Posted May 1, 2016 جرب كدا addEventHandler("onClientMarkerHit", Taxi1, function (hitPlayer) if (hitPlayer == localPlayer) and ( getPlayerTeam (localPlayer )) and ( getPlayerTeam (localPlayer) == getTeamFromName ("Criminals")) then guiSetVisible(SheepWindow, true) showCursor( true ) else exports["guimessages"]:outputClient("Only for Criminals Team", 255, 0, 0) end end) نفس الشي ,,, ما في حد يحللي هالمشكلة ؟؟ : @ Link to comment
Me[Z]oO Posted May 1, 2016 Share Posted May 1, 2016 ] addEventHandler("onClientMarkerHit", Taxi1, function (hitPlayer) if (hitPlayer == localPlayer) and if getPlayerTeam (hitPlayer ) and getPlayerTeam (hitPlayer) == getTeamFromName ("Criminals") then guiSetVisible(SheepWindow, true) showCursor( true ) else exports["guimessages"]:outputClient("Only for Criminals Team", 255, 0, 0) end end) Link to comment
Abo-Al3ZaB Posted May 2, 2016 Author Share Posted May 2, 2016 ] addEventHandler("onClientMarkerHit", Taxi1, function (hitPlayer) if (hitPlayer == localPlayer) and if getPlayerTeam (hitPlayer ) and getPlayerTeam (hitPlayer) == getTeamFromName ("Criminals") then guiSetVisible(SheepWindow, true) showCursor( true ) else exports["guimessages"]:outputClient("Only for Criminals Team", 255, 0, 0) end end) ما زبط Link to comment
Me[Z]oO Posted May 2, 2016 Share Posted May 2, 2016 ] addEventHandler("onClientMarkerHit", Taxi1, function (hitPlayer) if (hitPlayer == localPlayer) and getPlayerTeam (hitPlayer) == getTeamFromName ("Criminals") then guiSetVisible(SheepWindow, true) showCursor( true ) else exports["guimessages"]:outputClient("Only for Criminals Team", 255, 0, 0) end end) Link to comment
Abo-Al3ZaB Posted May 2, 2016 Author Share Posted May 2, 2016 ] addEventHandler("onClientMarkerHit", Taxi1, function (hitPlayer) if (hitPlayer == localPlayer) and getPlayerTeam (hitPlayer) == getTeamFromName ("Criminals") then guiSetVisible(SheepWindow, true) showCursor( true ) else exports["guimessages"]:outputClient("Only for Criminals Team", 255, 0, 0) end end) no : #####@ Link to comment
Ja[B]er[X]Pro Posted May 2, 2016 Share Posted May 2, 2016 Taxi1 = createMarker(2351.49829,-646.99908,127.05469,"cylinder",1.5,255,255,0,255) local Skins = {{"159",'Shepherd|1|'}} SheepWindow = guiCreateWindow(247, 74, 312, 456, ".:[Gta-Wd]|[sheep Job]:.", false) guiWindowSetSizable(SheepWindow, false) guiSetVisible(SheepWindow,false) b1 = guiCreateButton(9, 398, 94, 41, "Take Job", false, SheepWindow) guiSetProperty(b1, "NormalTextColour", "FF00FF00") b2 = guiCreateButton(214, 398, 88, 41, "Close", false, SheepWindow) guiSetProperty(b2, "NormalTextColour", "FFFF0000") LabelNoteFBI = guiCreateLabel(9, 74, 318, 82, " Choose your skin and press 'Take Job'\n Go to the yellow marker and get the Sheep \n When the sheeps up to 5 go to the green marker to \n Sell the sheeps and take your money. ", false, SheepWindow) guiSetFont(LabelNoteFBI, "default-bold-small") guiLabelSetColor(LabelNoteFBI, 223, 202, 31) g1 = guiCreateGridList(9, 156, 293, 189, false, SheepWindow) LabeloRFBI = guiCreateLabel(139, 408, 34, 27, "OR", false, SheepWindow) guiLabelSetColor(LabeloRFBI, 255, 165, 0) guiGridListAddColumn(g1, "#", 0.3) guiGridListAddColumn(g1, "Skin Number", 0.3) guiGridListAddColumn(g1, "Skin Name", 0.3) for i,v in ipairs(Skins) do local row = guiGridListAddRow(g1) guiGridListSetItemText(g1, row, 1, i, false, false) guiGridListSetItemText(g1, row, 2, v[1], false, false) guiGridListSetItemText(g1, row, 3, v[2], false, false) end addEventHandler("onClientMarkerHit",Taxi1,function(hitPlayer) if hitPlayer == localPlayer then if getPlayerTeam (localPlayer ) and getPlayerTeam (localPlayer) == getTeamFromName ("Criminals") then guiSetVisible(SheepWindow,true) showCursor( true ) else exports["guimessages"]:outputClient(source,"Only for Criminals Team", 255,0,0) end end end) addEventHandler("onClientGUIClick",root,function() if (source == b2) then guiSetVisible(SheepWindow,false) showCursor(false) end end) Link to comment
Abo-Al3ZaB Posted May 2, 2016 Author Share Posted May 2, 2016 Taxi1 = createMarker(2351.49829,-646.99908,127.05469,"cylinder",1.5,255,255,0,255) local Skins = {{"159",'Shepherd|1|'}} SheepWindow = guiCreateWindow(247, 74, 312, 456, ".:[Gta-Wd]|[sheep Job]:.", false) guiWindowSetSizable(SheepWindow, false) guiSetVisible(SheepWindow,false) b1 = guiCreateButton(9, 398, 94, 41, "Take Job", false, SheepWindow) guiSetProperty(b1, "NormalTextColour", "FF00FF00") b2 = guiCreateButton(214, 398, 88, 41, "Close", false, SheepWindow) guiSetProperty(b2, "NormalTextColour", "FFFF0000") LabelNoteFBI = guiCreateLabel(9, 74, 318, 82, " Choose your skin and press 'Take Job'\n Go to the yellow marker and get the Sheep \n When the sheeps up to 5 go to the green marker to \n Sell the sheeps and take your money. ", false, SheepWindow) guiSetFont(LabelNoteFBI, "default-bold-small") guiLabelSetColor(LabelNoteFBI, 223, 202, 31) g1 = guiCreateGridList(9, 156, 293, 189, false, SheepWindow) LabeloRFBI = guiCreateLabel(139, 408, 34, 27, "OR", false, SheepWindow) guiLabelSetColor(LabeloRFBI, 255, 165, 0) guiGridListAddColumn(g1, "#", 0.3) guiGridListAddColumn(g1, "Skin Number", 0.3) guiGridListAddColumn(g1, "Skin Name", 0.3) for i,v in ipairs(Skins) do local row = guiGridListAddRow(g1) guiGridListSetItemText(g1, row, 1, i, false, false) guiGridListSetItemText(g1, row, 2, v[1], false, false) guiGridListSetItemText(g1, row, 3, v[2], false, false) end addEventHandler("onClientMarkerHit",Taxi1,function(hitPlayer) if hitPlayer == localPlayer then if getPlayerTeam (localPlayer ) and getPlayerTeam (localPlayer) == getTeamFromName ("Criminals") then guiSetVisible(SheepWindow,true) showCursor( true ) else exports["guimessages"]:outputClient(source,"Only for Criminals Team", 255,0,0) end end end) addEventHandler("onClientGUIClick",root,function() if (source == b2) then guiSetVisible(SheepWindow,false) showCursor(false) end end) ما ضبط -___- Link to comment
Abdul KariM Posted May 2, 2016 Share Posted May 2, 2016 addEventHandler("onClientMarkerHit", resourceRoot, function ( hitPlayer ) if ( hitPlayer == localPlayer ) and ( source == Taxi1 ) then if getPlayerTeam ( hitPlayer ) and getPlayerTeam ( hitPlayer ) == getTeamFromName ("Criminals") then guiSetVisible( SheepWindow, true ) showCursor( true ) else exports["guimessages"]:outputClient("Only for Criminals Team", 255, 0, 0) end end end ) ; جرب كذا , ماضبط افتح الدي بوق debugscript 3 وصور لنا وش يطلع لك @ Link to comment
Ja[B]er[X]Pro Posted May 3, 2016 Share Posted May 3, 2016 Taxi1 = createMarker(2351.49829,-646.99908,127.05469,"cylinder",1.5,255,255,0,255) local Skins = {{"159",'Shepherd|1|'}} SheepWindow = guiCreateWindow(247, 74, 312, 456, ".:[Gta-Wd]|[sheep Job]:.", false) guiWindowSetSizable(SheepWindow, false) guiSetVisible(SheepWindow,false) b1 = guiCreateButton(9, 398, 94, 41, "Take Job", false, SheepWindow) guiSetProperty(b1, "NormalTextColour", "FF00FF00") b2 = guiCreateButton(214, 398, 88, 41, "Close", false, SheepWindow) guiSetProperty(b2, "NormalTextColour", "FFFF0000") LabelNoteFBI = guiCreateLabel(9, 74, 318, 82, " Choose your skin and press 'Take Job'\n Go to the yellow marker and get the Sheep \n When the sheeps up to 5 go to the green marker to \n Sell the sheeps and take your money. ", false, SheepWindow) guiSetFont(LabelNoteFBI, "default-bold-small") guiLabelSetColor(LabelNoteFBI, 223, 202, 31) g1 = guiCreateGridList(9, 156, 293, 189, false, SheepWindow) LabeloRFBI = guiCreateLabel(139, 408, 34, 27, "OR", false, SheepWindow) guiLabelSetColor(LabeloRFBI, 255, 165, 0) guiGridListAddColumn(g1, "#", 0.3) guiGridListAddColumn(g1, "Skin Number", 0.3) guiGridListAddColumn(g1, "Skin Name", 0.3) for i,v in ipairs(Skins) do local row = guiGridListAddRow(g1) guiGridListSetItemText(g1, row, 1, i, false, false) guiGridListSetItemText(g1, row, 2, v[1], false, false) guiGridListSetItemText(g1, row, 3, v[2], false, false) end addEventHandler("onClientMarkerHit",Taxi1,function(hitPlayer) if hitPlayer == localPlayer then if getPlayerTeam (localPlayer ) and getPlayerTeam (localPlayer) == getTeamFromName ("Criminals") then guiSetVisible(SheepWindow,true) showCursor( true ) else exports["guimessages"]:outputClient(source,"Only for Criminals Team", 255,0,0) end end end) addEventHandler("onClientGUIClick",root,function() if (source == b2) then guiSetVisible(SheepWindow,false) showCursor(false) end end) ما ضبط -___- كيف ما ضبط -___- انا جربته بنفسي وشغال %100 Link to comment
Abo-Al3ZaB Posted May 3, 2016 Author Share Posted May 3, 2016 Taxi1 = createMarker(2351.49829,-646.99908,127.05469,"cylinder",1.5,255,255,0,255) local Skins = {{"159",'Shepherd|1|'}} SheepWindow = guiCreateWindow(247, 74, 312, 456, ".:[Gta-Wd]|[sheep Job]:.", false) guiWindowSetSizable(SheepWindow, false) guiSetVisible(SheepWindow,false) b1 = guiCreateButton(9, 398, 94, 41, "Take Job", false, SheepWindow) guiSetProperty(b1, "NormalTextColour", "FF00FF00") b2 = guiCreateButton(214, 398, 88, 41, "Close", false, SheepWindow) guiSetProperty(b2, "NormalTextColour", "FFFF0000") LabelNoteFBI = guiCreateLabel(9, 74, 318, 82, " Choose your skin and press 'Take Job'\n Go to the yellow marker and get the Sheep \n When the sheeps up to 5 go to the green marker to \n Sell the sheeps and take your money. ", false, SheepWindow) guiSetFont(LabelNoteFBI, "default-bold-small") guiLabelSetColor(LabelNoteFBI, 223, 202, 31) g1 = guiCreateGridList(9, 156, 293, 189, false, SheepWindow) LabeloRFBI = guiCreateLabel(139, 408, 34, 27, "OR", false, SheepWindow) guiLabelSetColor(LabeloRFBI, 255, 165, 0) guiGridListAddColumn(g1, "#", 0.3) guiGridListAddColumn(g1, "Skin Number", 0.3) guiGridListAddColumn(g1, "Skin Name", 0.3) for i,v in ipairs(Skins) do local row = guiGridListAddRow(g1) guiGridListSetItemText(g1, row, 1, i, false, false) guiGridListSetItemText(g1, row, 2, v[1], false, false) guiGridListSetItemText(g1, row, 3, v[2], false, false) end addEventHandler("onClientMarkerHit",Taxi1,function(hitPlayer) if hitPlayer == localPlayer then if getPlayerTeam (localPlayer ) and getPlayerTeam (localPlayer) == getTeamFromName ("Criminals") then guiSetVisible(SheepWindow,true) showCursor( true ) else exports["guimessages"]:outputClient(source,"Only for Criminals Team", 255,0,0) end end end) addEventHandler("onClientGUIClick",root,function() if (source == b2) then guiSetVisible(SheepWindow,false) showCursor(false) end end) ما ضبط -___- كيف ما ضبط -___- انا جربته بنفسي وشغال %100 اخوي لما احط اكواد اللوحة لحالها كذا بالكلينت مع الماركر الكود يشتغل واللوحة تفتح فقط للكريمينال Taxi1 = createMarker(2351.49829,-646.99908,127.05469,"cylinder",1.5,255,255,0,255) GUIEditor = { gridlist = {}, window = {}, button = {}, label = {} } local Skins = {{"159",'Shepherd|1|'}} SheepWindow = guiCreateWindow(247, 74, 312, 456, ".:[Gta-Wd]|[sheep Job]:.", false) guiWindowSetSizable(SheepWindow, false) guiSetVisible(SheepWindow,false) b1 = guiCreateButton(9, 398, 94, 41, "Take Job", false, SheepWindow) guiSetProperty(b1, "NormalTextColour", "FF00FF00") b2 = guiCreateButton(214, 398, 88, 41, "Close", false, SheepWindow) guiSetProperty(b2, "NormalTextColour", "FFFF0000") LabelNoteFBI = guiCreateLabel(9, 74, 318, 82, " Choose your skin and press 'Take Job'\n Go to the yellow marker and get the Sheep \n When the sheeps up to 5 go to the green marker to \n Sell the sheeps and take your money. ", false, SheepWindow) guiSetFont(LabelNoteFBI, "default-bold-small") guiLabelSetColor(LabelNoteFBI, 223, 202, 31) g1 = guiCreateGridList(9, 156, 293, 189, false, SheepWindow) LabeloRFBI = guiCreateLabel(139, 408, 34, 27, "OR", false, SheepWindow) guiLabelSetColor(LabeloRFBI, 255, 165, 0) guiGridListAddColumn(g1, "#", 0.3) guiGridListAddColumn(g1, "Skin Number", 0.3) guiGridListAddColumn(g1, "Skin Name", 0.3) for i,v in ipairs(Skins) do local row = guiGridListAddRow(g1) guiGridListSetItemText(g1, row, 1, i, false, false) guiGridListSetItemText(g1, row, 2, v[1], false, false) guiGridListSetItemText(g1, row, 3, v[2], false, false) end function showGUIbtt(hitElement) if getElementType(hitElement) == "player" and (hitElement == localPlayer) then if ( getTeamName( getPlayerTeam( localPlayer ) ) == "Criminals" ) then guiSetVisible(SheepWindow, true) showCursor( true ) else exports["guimessages"]:outputClient("Only for Criminals Team", 255, 0, 0) end end end addEventHandler("onClientMarkerHit", Taxi1, showGUIbtt) addEventHandler("onClientGUIClick",root,function() if (source == b2) then guiSetVisible(SheepWindow,false) showCursor(false) end end) بس لما اجمع اكواد ملف الكلينت كلها مع بعض تصير اللوحة تفتح لكل التيمات مش عارف بصراحة وين المشكلة بالزبط Link to comment
Abo-Al3ZaB Posted May 3, 2016 Author Share Posted May 3, 2016 انت مسوي كم ماركر بالمود ؟ 3 بس كل ماركر له وظيفته Link to comment
#|_oskar_|# Posted May 4, 2016 Share Posted May 4, 2016 انت مسوي كم ماركر بالمود ؟ 3 بس كل ماركر له وظيفته يمكن المشكله منهم طيب احذف الماركرين وجرب شوف اللوحه تفتح للتيم فقط ولا للكل Link to comment
Abo-Al3ZaB Posted May 4, 2016 Author Share Posted May 4, 2016 انت مسوي كم ماركر بالمود ؟ 3 بس كل ماركر له وظيفته يمكن المشكله منهم طيب احذف الماركرين وجرب شوف اللوحه تفتح للتيم فقط ولا للكل خلاص اخوي تم حل المشكلة ,,, الغلط كان مني يعطيكم العافية وما قصرتو : ) 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