Mr.Dz Posted April 24, 2014 Share Posted April 24, 2014 سلام عليكم ورحمة الله وبركاته مشكله صغيره لما اخش ماركر وتيجي لوحه الوحه م تيجي لي بس الوحه تيجي لكل لاعبين السيرفر في نفس الوقت يلي اخذ فيه الوحه انا الكود كلينت praca = createMarker( 952.96497, -910.00677, 44.76563, "cylinder", 1.5, 255, 0, 0) GUIEditor = { memo = {}, button = {}, window = {}, } addEventHandler ("onClientMarkerHit", praca, function() Oknotaxi = guiCreateWindow(0.29, 0.24, 0.42, 0.49, "وظيفة المجرم By:RsmTk7lm", true) guiSetVisible(Oknotaxi, true) Pakceptuj = guiCreateMemo(0.08, 0.20, 0.41, 0.67, "", false, Oknotaxi) Pakceptuj = guiCreateButton(0.60, 0.20, 0.34, 0.17, "اضغط هنا للتوضيف", true, Oknotaxi) guiSetFont(GUIEditor.button[1], "sa-header") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") addEventHandler("onClientGUIClick", Pakceptuj, Dolacz, false) GUIEditor.memo[1] = guiCreateMemo(0.08, 0.20, 0.41, 0.67, "تنبيه ادا قتلت المجرمين كثير سوف تحصل على رتبت [King] وشكرا", true, Oknotaxi) end ) function OknoTaxi() if source == praca then guiSetVisible (Oknotaxi,false) showCursor (false) end end addEventHandler ("onClientMarkerLeave", praca, OknoTaxi) addEventHandler( "onClientResourceStart", getRootElement( ), function ( startedRes ) createBlipAttachedTo( praca, 43); end ); function zamknij() if source == Pakceptuj then guiSetVisible (Oknotaxi, false) showCursor (false) end end addEventHandler ("onClientGUIClick", root, zamknij) function Dolacz() triggerServerEvent("sTeame", localPlayer, "teamSet") end سيرفر Teame = createTeam("Pro", 255, 0, 0) taxiTeams = { [Teame] = true } taxiVehs = { [420] = true } function teamSet ( ) local team = getTeamFromName ( "Pro" ) if team then setPlayerTeam ( source, team ) setPlayerNametagColor ( source, 255, 0, 0 ) setElementModel(source, 230) createVehicle(522, 974.13708, -924.45117, 45.76563) outputChatBox("تم دخولك في فريق البرو", thePlayer) else local teamw = getTeamFromName ( "Pro" ) if teamw then cancelEvent() outputChatBox("اذهب لقتل المجرمين", source) end end end addEvent ( "sTeame", true) addEventHandler ( "sTeame", root, teamSet ) function enterVehicle ( thePlayer, seat, jacked ) if getElementType ( thePlayer ) == "player" then if ( taxiVehs[getElementModel ( source )] ) and ( not taxiTeams[getPlayerTeam( thePlayer )] ) then removePedFromVehicle( thePlayer ) outputChatBox("تم نزول سيارتك ", thePlayer) end end end addEventHandler("onVehicleEnter", getRootElement(), enterVehicle) function deleteOnExit ( thePlayer ) if ( isElement ( markers [ thePlayer ] ) ) then destroyElement ( markers [ thePlayer ] ) end if ( isElement ( blips [ thePlayer ] ) ) then destroyElement ( blips [ thePlayer ] ) end if ( isElement ( peds [ thePlayer ] ) ) then destroyElement ( peds [ thePlayer ] ) end end addEventHandler("onVehicleExit", getRootElement(), deleteOnExit) Link to comment
Mr-M3AND Posted April 24, 2014 Share Posted April 24, 2014 (edited) :: Client praca = createMarker( 952.96497, -910.00677, 44.76563, "cylinder", 1.5, 255, 0, 0) GUIEditor = { memo = {}, button = {}, window = {} } addEventHandler ("onClientMarkerHit", praca, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then Oknotaxi = guiCreateWindow(0.29, 0.24, 0.42, 0.49, "وظيفة المجرم By:RsmTk7lm", true) guiSetVisible(Oknotaxi, true) showCursor (true) Pakceptuj = guiCreateMemo(0.08, 0.20, 0.41, 0.67, "", false, Oknotaxi) Pakceptuj = guiCreateButton(0.60, 0.20, 0.34, 0.17, "اضغط هنا للتوضيف", true, Oknotaxi) guiSetFont(Pakceptuj, "sa-header") guiSetProperty(Pakceptuj, "NormalTextColour", "FFAAAAAA") addEventHandler("onClientGUIClick", Pakceptuj, Dolacz, false) GUIEditor.memo[1] = guiCreateMemo(0.08, 0.20, 0.41, 0.67, "تنبيه ادا قتلت المجرمين كثير سوف تحصل على رتبت [King] وشكرا", true, Oknotaxi) end end ) function OknoTaxi(leavePlayer) if (leavePlayer == localPlayer) then guiSetVisible (Oknotaxi,false) showCursor (false) end end addEventHandler ("onClientMarkerLeave", praca, OknoTaxi) addEventHandler( "onClientResourceStart", getRootElement( ), function ( startedRes ) createBlipAttachedTo( praca, 43); end ) function zamknij() if source == Pakceptuj then guiSetVisible (Oknotaxi, false) showCursor (false) end end addEventHandler ("onClientGUIClick", root, zamknij) function Dolacz() triggerServerEvent("sTeame", localPlayer, "teamSet") end Edited April 24, 2014 by Guest Link to comment
EH10 Posted April 24, 2014 Share Posted April 24, 2014 # Client Side marker = createMarker( 952.96497, -910.00677, 44.76563, "cylinder", 1.5, 255, 0, 0) Oknotaxi = guiCreateWindow(0.29, 0.24, 0.42, 0.49, "وظيفة المجرم By:RsmTk7lm", true) guiSetVisible(Oknotaxi, false) Pakceptuj = guiCreateMemo(0.08, 0.20, 0.41, 0.67, "", false, Oknotaxi) Pakceptuj = guiCreateButton(0.60, 0.20, 0.34, 0.17, "اضغط هنا للتوضيف", true, Oknotaxi) guiSetFont(GUIEditor.button[1], "sa-header") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") addEventHandler("onClientGUIClick", Pakceptuj, Dolacz, false) GUIEditor.memo[1] = guiCreateMemo(0.08, 0.20, 0.41, 0.67, "تنبيه ادا قتلت المجرمين كثير سوف تحصل على رتبت [King] وشكرا", true, Oknotaxi) addEventHandler("onClientMarkerHit",marker, function (player) if (getElementType (player) == "player") and (player == localPlayer) then showCursor(true) guiSetVisible(Oknotaxi,true) end end ) addEventHandler("onClientMarkerLeave",marker, function (player) if (getElementType (player) == "player") and (player == localPlayer) then showCursor(false) guiSetVisible(Oknotaxi,false) end end ) addEventHandler( "onClientResourceStart", getRootElement( ), function ( startedRes ) createBlipAttachedTo( praca, 43); end ); function zamknij() if source == Pakceptuj then guiSetVisible (Oknotaxi, false) showCursor (false) end end addEventHandler ("onClientGUIClick", root, zamknij) function Dolacz() triggerServerEvent("sTeame", localPlayer, "teamSet") end ) 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