^iiEcoo'x_) Posted March 7, 2017 Share Posted March 7, 2017 count = 100 addEventHandler ("onClientMarkerHit",root, function ( hitPlayer ) if hitPlayer == localPlayer then Timer = setTimer(function() count = guiProgressBarSetProgress( name , guiProgressBarGetProgress ( name ) + 1 ) isProgressFinshed () end , 1000 , count ) end end ) function isProgressFinshed () if isTimer ( Timer ) then if guiProgressBarGetProgress( name ) == 100 then outputChatBox ( " اكتمل احتلال " ) end end end Link to comment
L3yr Posted March 7, 2017 Author Share Posted March 7, 2017 9 minutes ago, #_iMr.[E]coo said: بالنسبة ل تزويد نسيته الرسالة كيف ما تطلع ؟ 2 minutes ago, #BrosS said: local Marker = createMarker -- ماركر الاحتلال name = guiCreateProgressBar(0.05, 0.5, 0.15, 0.033, true) -- عدل الى احداثياتك addEventHandler ("onClientMarkerHit",root, function ( hitPlayer ) if hitPlayer == localPlayer then if (source == Marker) then guiSetVisible(name,true) guiProgressBarSetProgress(name, guiProgressBarGetProgress(name) + 1) if guiProgressBarGetProgress(name) == 100 then outputChatBox ( " اكتمل احتلال " ) guiSetVisible(name, false) givePlayerMoney(10000) end end end end ) addEventHandler ("onClientMarkerLeave",root, function ( LeavePlayer ) if LeavePlayer == localPlayer then if (source == Marker) then guiSetVisible(name,false) outputChatBox ( " غادرت الاحتلال " ) end end end ) جوال 7 minutes ago, #Soking said: لازم تتحقق بكل مره بعد لما تزود البروجرس مو مره واحده مو معناه انك حاطها بعد التايمر ان التحقق بيصير بعده تسلمو على المساعده Link to comment
#Soking Posted March 7, 2017 Share Posted March 7, 2017 2 hours ago, #BrosS said: local Marker = createMarker -- ماركر الاحتلال name = guiCreateProgressBar(0.05, 0.5, 0.15, 0.033, true) -- عدل الى احداثياتك addEventHandler ("onClientMarkerHit",root, function ( hitPlayer ) if hitPlayer == localPlayer then if (source == Marker) then guiSetVisible(name,true) guiProgressBarSetProgress(name, guiProgressBarGetProgress(name) + 1) if guiProgressBarGetProgress(name) == 100 then outputChatBox ( " اكتمل احتلال " ) guiSetVisible(name, false) givePlayerMoney(10000) end end end end ) addEventHandler ("onClientMarkerLeave",root, function ( LeavePlayer ) if LeavePlayer == localPlayer then if (source == Marker) then guiSetVisible(name,false) outputChatBox ( " غادرت الاحتلال " ) end end end ) جوال غلط انت كودك كل لما تلمس المركر يزود البروجرس Link to comment
#BrosS Posted March 7, 2017 Share Posted March 7, 2017 Just now, #Soking said: غلط انت كودك كل لما تلمس المركر يزود البروجرس صححه ولا وظيفتك تقول صحيح وخطأ فقط ذذ Link to comment
#Soking Posted March 7, 2017 Share Posted March 7, 2017 10 minutes ago, #BrosS said: صححه ولا وظيفتك تقول صحيح وخطأ فقط ذذ قلت لك السبب انت مخليه لما يلمس المركر يزوده مره المفروض تسوي تابمر و شغلك يكون دقيق عن كذا Link to comment
L3yr Posted March 8, 2017 Author Share Posted March 8, 2017 On ٧/٣/٢٠١٧ at 20:24, #BrosS said: local Marker = createMarker -- ماركر الاحتلال name = guiCreateProgressBar(0.05, 0.5, 0.15, 0.033, true) -- عدل الى احداثياتك addEventHandler ("onClientMarkerHit",root, function ( hitPlayer ) if hitPlayer == localPlayer then if (source == Marker) then guiSetVisible(name,true) guiProgressBarSetProgress(name, guiProgressBarGetProgress(name) + 1) if guiProgressBarGetProgress(name) == 100 then outputChatBox ( " اكتمل احتلال " ) guiSetVisible(name, false) givePlayerMoney(10000) end end end end ) addEventHandler ("onClientMarkerLeave",root, function ( LeavePlayer ) if LeavePlayer == localPlayer then if (source == Marker) then guiSetVisible(name,false) outputChatBox ( " غادرت الاحتلال " ) end end end ) جوال شكرا اخى على المساعده ولاكن فى شى انا لما بخش الماركر الشريط بيظهر وكل شى بس مش بيحمل لازم اطلع واخش واطلع واخش لما بطلع واخش بيحمل حته حته يعنى لو واقف جوا الماركر علطول مش بيحمل لازم اطلع من الماركر واخش تانى وهكذا وشكرا Link to comment
^iiEcoo'x_) Posted March 9, 2017 Share Posted March 9, 2017 On ٧/٣/٢٠١٧ at 20:27, #_iMr.[E]coo said: count = 100 addEventHandler ("onClientMarkerHit",root, function ( hitPlayer ) if hitPlayer == localPlayer then Timer = setTimer(function() count = guiProgressBarSetProgress( name , guiProgressBarGetProgress ( name ) + 1 ) isProgressFinshed () end , 1000 , count ) end end ) function isProgressFinshed () if isTimer ( Timer ) then if guiProgressBarGetProgress( name ) == 100 then outputChatBox ( " اكتمل احتلال " ) end end end جربه ^ Link to comment
Master_MTA Posted March 9, 2017 Share Posted March 9, 2017 local Marker = createMarker -- ماركر الاحتلال name = guiCreateProgressBar(0.05, 0.5, 0.15, 0.033, true) -- عدل الى احداثياتك addEventHandler ("onClientMarkerHit",root, function ( hitPlayer ) if hitPlayer == localPlayer then if (source == Marker) then if getElmentData(hitPlayer,'turf')==true and getElementData(Marker,'whoplayer')==hitPlayer then return end guiSetVisible(name,true) guiProgressBarSetProgress(name, guiProgressBarGetProgress(name) + 1) if guiProgressBarGetProgress(name) == 100 then outputChatBox ( " اكتمل احتلال " ) setElementData(hitPlayer,'turf',true) setElementData(Marker,'whoplayer',hitPlayer) guiSetVisible(name, false) givePlayerMoney(10000) end end end end ) addEventHandler ("onClientMarkerLeave",root, function ( LeavePlayer ) if LeavePlayer == localPlayer then if (source == Marker) then guiSetVisible(name,false) outputChatBox ( " غادرت الاحتلال " ) end end end ) انا ركزت على كود لمس الماركر مدري عاد عن الباقي جرب Link to comment
L3yr Posted March 9, 2017 Author Share Posted March 9, 2017 (edited) 1 hour ago, Master_MTA said: local Marker = createMarker -- ماركر الاحتلال name = guiCreateProgressBar(0.05, 0.5, 0.15, 0.033, true) -- عدل الى احداثياتك addEventHandler ("onClientMarkerHit",root, function ( hitPlayer ) if hitPlayer == localPlayer then if (source == Marker) then if getElmentData(hitPlayer,'turf')==true and getElementData(Marker,'whoplayer')==hitPlayer then return end guiSetVisible(name,true) guiProgressBarSetProgress(name, guiProgressBarGetProgress(name) + 1) if guiProgressBarGetProgress(name) == 100 then outputChatBox ( " اكتمل احتلال " ) setElementData(hitPlayer,'turf',true) setElementData(Marker,'whoplayer',hitPlayer) guiSetVisible(name, false) givePlayerMoney(10000) end end end end ) addEventHandler ("onClientMarkerLeave",root, function ( LeavePlayer ) if LeavePlayer == localPlayer then if (source == Marker) then guiSetVisible(name,false) outputChatBox ( " غادرت الاحتلال " ) end end end ) انا ركزت على كود لمس الماركر مدري عاد عن الباقي جرب ما ظبطت اخى برضو بيقول خطاء فى سطر 10 Edited March 9, 2017 by L3yr Link to comment
Master_MTA Posted March 9, 2017 Share Posted March 9, 2017 48 minutes ago, L3yr said: ما ظبطت اخى برضو بيقول خطاء فى سطر 10 سؤال name انت معرفها؟ Link to comment
L3yr Posted March 9, 2017 Author Share Posted March 9, 2017 Just now, Master_MTA said: سؤال name انت معرفها؟ معرف ايه Link to comment
#BrosS Posted March 9, 2017 Share Posted March 9, 2017 22 hours ago, L3yr said: شكرا اخى على المساعده ولاكن فى شى انا لما بخش الماركر الشريط بيظهر وكل شى بس مش بيحمل لازم اطلع واخش واطلع واخش لما بطلع واخش بيحمل حته حته يعنى لو واقف جوا الماركر علطول مش بيحمل لازم اطلع من الماركر واخش تانى وهكذا وشكرا جرب local Marker = createMarker -- ماركر الاحتلال name = guiCreateProgressBar(0.05, 0.5, 0.15, 0.033, true) -- عدل الى احداثياتك progress = 0 addEventHandler ("onClientMarkerHit",root, function ( hitPlayer ) progress = progress +1 if hitPlayer == localPlayer then if (source == Marker) then guiSetVisible(name,true) guiProgressBarSetProgress(name, guiProgressBarGetProgress(name) + progress) if guiProgressBarGetProgress(name) == 100 then outputChatBox ( " اكتمل احتلال " ) guiSetVisible(name, false) givePlayerMoney(10000) end end end end ) addEventHandler ("onClientMarkerLeave",root, function ( LeavePlayer ) if LeavePlayer == localPlayer then if (source == Marker) then guiSetVisible(name,false) outputChatBox ( " غادرت الاحتلال " ) end end end ) Link to comment
L3yr Posted March 9, 2017 Author Share Posted March 9, 2017 4 minutes ago, #BrosS said: جرب local Marker = createMarker -- ماركر الاحتلال name = guiCreateProgressBar(0.05, 0.5, 0.15, 0.033, true) -- عدل الى احداثياتك progress = 0 addEventHandler ("onClientMarkerHit",root, function ( hitPlayer ) progress = progress +1 if hitPlayer == localPlayer then if (source == Marker) then guiSetVisible(name,true) guiProgressBarSetProgress(name, guiProgressBarGetProgress(name) + progress) if guiProgressBarGetProgress(name) == 100 then outputChatBox ( " اكتمل احتلال " ) guiSetVisible(name, false) givePlayerMoney(10000) end end end end ) addEventHandler ("onClientMarkerLeave",root, function ( LeavePlayer ) if LeavePlayer == localPlayer then if (source == Marker) then guiSetVisible(name,false) outputChatBox ( " غادرت الاحتلال " ) end end 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