BeCooL Posted October 25, 2012 Share Posted October 25, 2012 شباب انا سويت مود بس مدري وش الغلط !! myMarker = createMarker(0, 0, 2, 'cylinder', 2.0, 255, 0, 0, 150) function MarkerHit( hitPlayer, matchingDimension ) if (getPlayerMoney(source) >= 100) then givePlayerMoney ( hitPlayer, -100 ) takePlayerMoney(hitPlayer, -100) end outputChatBox("You don't have money", source, 255,255,255,true) end addEventHandler( "onMarkerHit", myMarker, MarkerHit ) ابغى مساعده اذا شغلت المود تختفي الماركر Link to comment
BeCooL Posted October 25, 2012 Author Share Posted October 25, 2012 setElementAlpha انت فهمتني خطأ انا اذا شغلت المود ماتطلع الماركر ليه وش الخطأ بالمود ؟ Link to comment
abu5lf Posted October 25, 2012 Share Posted October 25, 2012 انت وش حطيت الاحداثيات ؟ givePlayerMoney ( hitPlayer, -100 ) takePlayerMoney(hitPlayer, -100) ???? كل كودك خطا Link to comment
BeCooL Posted October 25, 2012 Author Share Posted October 25, 2012 انت وش حطيت الاحداثيات ؟ givePlayerMoney ( hitPlayer, -100 ) takePlayerMoney(hitPlayer, -100) ???? كل كودك خطا بنص الخريطه (0, 0, 2, 'cylinder', 2.0, 255, 0, 0, 150) Link to comment
BeCooL Posted October 25, 2012 Author Share Posted October 25, 2012 انت وش حطيت الاحداثيات ؟ givePlayerMoney ( hitPlayer, -100 ) takePlayerMoney(hitPlayer, -100) ???? كل كودك خطا طيب هذا الكود صح بس اذا شريت تصير الفلوس سالب مافي حل ؟ myMarker = createMarker(1659.3663330078, 1720.1549072266, 9.82811164856, 'cylinder', 2.0, 50, 50, 50, 150) function MarkerHit( hitPlayer, matchingDimension ) setElementHealth ( hitPlayer, 100 ) givePlayerMoney ( hitPlayer, -100 ) end addEventHandler( "onMarkerHit", myMarker, MarkerHit ) Link to comment
3NAD Posted October 25, 2012 Share Posted October 25, 2012 myMarker = createMarker(1659.3663330078, 1720.1549072266, 9.82811164856, 'cylinder', 2.0, 50, 50, 50, 150) function MarkerHit( hitPlayer, matchingDimension ) if getPlayerMoney ( hitPlayer ) >= 100 then setElementHealth ( hitPlayer, 100 ) takePlayerMoney ( hitPlayer, 100 ) end end addEventHandler( "onMarkerHit", myMarker, MarkerHit ) Link to comment
BeCooL Posted October 25, 2012 Author Share Posted October 25, 2012 myMarker = createMarker(1659.3663330078, 1720.1549072266, 9.82811164856, 'cylinder', 2.0, 50, 50, 50, 150) function MarkerHit( hitPlayer, matchingDimension ) if getPlayerMoney ( hitPlayer ) >= 100 then setElementHealth ( hitPlayer, 100 ) takePlayerMoney ( hitPlayer, 100 ) end end addEventHandler( "onMarkerHit", myMarker, MarkerHit ) المود صح وشغال مية مية بس حتى اذا دمي فل يسحب فلوس ليه ؟ Link to comment
3NAD Posted October 25, 2012 Share Posted October 25, 2012 function MarkerHit( hitPlayer, matchingDimension ) if getPlayerMoney ( hitPlayer ) >= 100 then if getElementHealth ( hitPlayer ) ~= 100 then setElementHealth ( hitPlayer, 100 ) takePlayerMoney ( hitPlayer, 100 ) end end end addEventHandler( "onMarkerHit", myMarker, MarkerHit ) Link to comment
BeCooL Posted October 25, 2012 Author Share Posted October 25, 2012 function MarkerHit( hitPlayer, matchingDimension ) if getPlayerMoney ( hitPlayer ) >= 100 then if getElementHealth ( hitPlayer ) ~= 100 then setElementHealth ( hitPlayer, 100 ) takePlayerMoney ( hitPlayer, 100 ) end end end addEventHandler( "onMarkerHit", myMarker, MarkerHit ) لم يتم حل المشكلة الى الآن يسحب فلوس ودمي كامل !! Link to comment
|Mr|-Talal07-| Posted October 25, 2012 Share Posted October 25, 2012 جرب ذا function MarkerHit( hitPlayer, matchingDimension ) local health = math.ceil(getElementHealth(hitPlayer)) if getPlayerMoney ( hitPlayer ) >= 100 then if health ~= 100 then setElementHealth ( hitPlayer, 100 ) takePlayerMoney ( hitPlayer, 100 ) end end end addEventHandler( "onMarkerHit", myMarker, MarkerHit ) Link to comment
BeCooL Posted October 26, 2012 Author Share Posted October 26, 2012 جرب ذا function MarkerHit( hitPlayer, matchingDimension ) local health = math.ceil(getElementHealth(hitPlayer)) if getPlayerMoney ( hitPlayer ) >= 100 then if health ~= 100 then setElementHealth ( hitPlayer, 100 ) takePlayerMoney ( hitPlayer, 100 ) end end end addEventHandler( "onMarkerHit", myMarker, MarkerHit ) نفس المشكله يسحب فلوس ودمي كامل Link to comment
BeCooL Posted October 26, 2012 Author Share Posted October 26, 2012 مافي حل يعني ولا شنو ؟ Link to comment
abu5lf Posted October 26, 2012 Share Posted October 26, 2012 مافي حل يعني ولا شنو ؟ local myMarker = createMarker ( 1659, 1720, 9, 'cylinder', 2.0, 50, 50, 50, 150 ) addEventHandler ( 'onMarkerHit', myMarker, function ( hitPlayer ) if ( getElementType ( hitPlayer ) == 'player' ) and ( getPlayerMoney ( hitPlayer ) >= 100 ) and ( getElementHealth ( hitPlayer ) <= 100 ) then setElementHealth ( hitPlayer, 100 ) takePlayerMoney ( hitPlayer, 100 ) end end ) Link to comment
BeCooL Posted October 26, 2012 Author Share Posted October 26, 2012 مافي حل يعني ولا شنو ؟ local myMarker = createMarker ( 1659, 1720, 9, 'cylinder', 2.0, 50, 50, 50, 150 ) addEventHandler ( 'onMarkerHit', myMarker, function ( hitPlayer ) if ( getElementType ( hitPlayer ) == 'player' ) and ( getPlayerMoney ( hitPlayer ) >= 100 ) and ( getElementHealth ( hitPlayer ) <= 100 ) then setElementHealth ( hitPlayer, 100 ) takePlayerMoney ( hitPlayer, 100 ) 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