فاّرس Posted July 13, 2013 Share Posted July 13, 2013 KinG_DrifT , اطرح كودك كامل , وقولنا وش تبي تسوي , لاني اشوف انك مرسل ترايقرين ومدري وش , قولنا وش تبي تسوي بالضبط , ووش هو الماركر الي تبي تسويه لو ضغط الزر , لاني اشوف 2 ماركر , Link to comment
Mr-Kartha Posted July 13, 2013 Share Posted July 13, 2013 هو شكله بيسوي نافذه فيها زر يوم يضغط الزر يشتغل الماركر يوم يروح له تكمل الوظيفه صخ ؟ Link to comment
jafar Posted July 13, 2013 Share Posted July 13, 2013 انا فاهمه بس اكواده معفوسة , وما طرح الكود كامل Link to comment
فاّرس Posted July 13, 2013 Share Posted July 13, 2013 بالضبط أنا ابي الكود كامل وابي يقولي وش يبي يسوي , لانه مصعب السالفه مو حاط الجدول ذذ Link to comment
iMr.Dawix~# Posted July 14, 2013 Share Posted July 14, 2013 local PosX,PosY,PosZ = unpack( vTable [ math.random( #vTable ) ] ) addEventHandler ( "onClientGUIClick", root, function() if source == GUIEditor.button[1] then guiSetVisible ( GUIEditor.window[1], false ) showCursor ( false ) setElementData ( source, "Job", true ) triggerServerEvent ("Setskin", getLocalPlayer()) triggerServerEvent ("SetTeam", getLocalPlayer()) one = createMarker ( PosX,PosY,PosZ, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler ( "onClientMarkerHit", one, moneys ) jobV = createMarker ( -2167.8999023438, 249, 34.299999237061, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler ( "onClientMarkerHit", jobV, showUserPanelV ) createBlipAttachedTo ( one, 51 ) end end ) function moneys ( hitElement ) local x,y,z = getElementPosition ( source ) local px,py,pz = getElementPosition ( hitElement ) if z and pz then local check = math.abs ( pz - z ) if 2 >= check then if getElementData(hitElement, "Job") then triggerLatentServerEvent ( "money",hitElement ) local PosX,PosY,PosZ = unpack( vTable [ math.random( #vTable ) ] ) setElementPosition (one, PosX, PosY, PosZ) end end end end --server addEvent("money", true) addEventHandler("money", getRootElement(), function ( ) givePlayerMoney ( client, math.random (900.1200) ) end ) سطر 6 يحط للزر المنت داتا وش الهدف منه؟ +سطر 5 بالسيرفر فيه قوس زايد --server addEvent("money", true) addEventHandler("money",root, function () givePlayerMoney (source, math.random (900,1200) end ) Link to comment
iPrestege Posted July 14, 2013 Share Posted July 14, 2013 local PosX,PosY,PosZ = unpack( vTable [ math.random( #vTable ) ] ) addEventHandler ( "onClientGUIClick", root, function() if source == GUIEditor.button[1] then guiSetVisible ( GUIEditor.window[1], false ) showCursor ( false ) setElementData ( source, "Job", true ) triggerServerEvent ("Setskin", getLocalPlayer()) triggerServerEvent ("SetTeam", getLocalPlayer()) one = createMarker ( PosX,PosY,PosZ, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler ( "onClientMarkerHit", one, moneys ) jobV = createMarker ( -2167.8999023438, 249, 34.299999237061, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler ( "onClientMarkerHit", jobV, showUserPanelV ) createBlipAttachedTo ( one, 51 ) end end ) function moneys ( hitElement ) local x,y,z = getElementPosition ( source ) local px,py,pz = getElementPosition ( hitElement ) if z and pz then local check = math.abs ( pz - z ) if 2 >= check then if getElementData(hitElement, "Job") then triggerLatentServerEvent ( "money",hitElement ) local PosX,PosY,PosZ = unpack( vTable [ math.random( #vTable ) ] ) setElementPosition (one, PosX, PosY, PosZ) end end end end --server addEvent("money", true) addEventHandler("money", getRootElement(), function ( ) givePlayerMoney ( client, math.random (900.1200) ) end ) سطر 6 يحط للزر المنت داتا وش الهدف منه؟ +سطر 5 بالسيرفر فيه قوس زايد --server addEvent("money", true) addEventHandler("money",root, function () givePlayerMoney (source, math.random (900,1200) end ) لا مافية ناقص -_-" قوس Link to comment
jafar Posted July 14, 2013 Share Posted July 14, 2013 local PosX,PosY,PosZ = unpack( vTable [ math.random( #vTable ) ] ) addEventHandler ( "onClientGUIClick", root, function() if source == GUIEditor.button[1] then guiSetVisible ( GUIEditor.window[1], false ) showCursor ( false ) setElementData ( source, "Job", true ) triggerServerEvent ("Setskin", getLocalPlayer()) triggerServerEvent ("SetTeam", getLocalPlayer()) one = createMarker ( PosX,PosY,PosZ, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler ( "onClientMarkerHit", one, moneys ) jobV = createMarker ( -2167.8999023438, 249, 34.299999237061, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler ( "onClientMarkerHit", jobV, showUserPanelV ) createBlipAttachedTo ( one, 51 ) end end ) function moneys ( hitElement ) local x,y,z = getElementPosition ( source ) local px,py,pz = getElementPosition ( hitElement ) if z and pz then local check = math.abs ( pz - z ) if 2 >= check then if getElementData(hitElement, "Job") then triggerLatentServerEvent ( "money",hitElement ) local PosX,PosY,PosZ = unpack( vTable [ math.random( #vTable ) ] ) setElementPosition (one, PosX, PosY, PosZ) end end end end --server addEvent("money", true) addEventHandler("money", getRootElement(), function ( ) givePlayerMoney ( client, math.random (900.1200) ) end ) سطر 6 يحط للزر المنت داتا وش الهدف منه؟ +سطر 5 بالسيرفر فيه قوس زايد --server addEvent("money", true) addEventHandler("money",root, function () givePlayerMoney (source, math.random (900,1200) end ) احين صار ناقص قوس Link to comment
iMr.Dawix~# Posted July 14, 2013 Share Posted July 14, 2013 خخخخخ ما ركزت كثير يمكن الخطا انه كان حاط math.random (900.1200) يمكن لازم تكون math.random (900,1200) Link to comment
jafar Posted July 14, 2013 Share Posted July 14, 2013 خخخخخ ما ركزت كثير يمكن الخطا انه كان حاط math.random (900.1200) يمكن لازم تكون math.random (900,1200) لا هو قبل حط كود صحيح , بس المشكلة ماطرح الكود كامل 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