taha201100 Posted October 3, 2015 Posted October 3, 2015 x = createMarker1 ( -2405.00000,-598.00000,132.64844 ) function ss() if source == (x) then getPlayerMoney (source,100) setPlayerSkin ( source, 287 ) end end ) addEventHandler ( "onClientMarkerHit",root,ss ) يتحقق لو معه 100 فلوس يدخل الماركر ويعطيه شخصية 287 لكن ما يشتغل ليه
GraveDigger. Posted October 3, 2015 Posted October 3, 2015 x = createMarker1 ( -2405.00000,-598.00000,132.64844 ) function ss() if source == (x) then getPlayerMoney (source,100) setPlayerSkin ( source, 287 ) end end ) addEventHandler ( "onClientMarkerHit",root,ss ) يتحقق لو معه 100 فلوس يدخل الماركر ويعطيه شخصية 287 لكن ما يشتغل ليه Marker = createMarker ( -2405.00000,-598.00000,132 ,"cylinder",1.5, 255,255,255 , 255 ) -- صنع ماركر function taha(thePlayer) -- وظيفة local playerMoney = getPlayerMoney(thePlayer) -- ايجاد فلوس الاعب if (playerMoney >= 100) then -- لو فلوسه اكبر من او يساوي 100 setPlayerSkin (thePlayer, 287 ) -- نديله سكن end -- إغلاق end -- إغلاق addEventHandler( "onMarkerHit", Marker , taha) -- حدث اذا الماركر اتلمس
GraveDigger. Posted October 3, 2015 Posted October 3, 2015 Marker = createMarker ( -2405.00000,-598.00000,132 ,"cylinder",1.5, 255,255,255 , 255 ) -- صنع ماركر function taha(thePlayer) -- وظيفة if ( getPlayerMoney(thePlayer) >= 100 ) then -- لو فلوسه اكبر من او يساوي 100 setPlayerSkin (thePlayer, 287 ) -- نديله سكن end -- إغلاق end -- إغلاق addEventHandler( "onMarkerHit", Marker , taha) -- حدث اذا الماركر اتلمس لازم للماركر عشان يتعرف
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