AmrOMohamed Posted January 11, 2016 Share Posted January 11, 2016 اريد لما يدخل الماركر يعطيه فلوس و مجرد ماياخذ الفلوس يقتله او ينقله الي مكان اخر انا سويت كود بس دنيا خربت عندي </p>\n<pre class="ipsCode">Marker = createMarker ( -1536.1199951172, -107.30553436279, 813.09985351563, "cylinder", 1.5, 69, 3, 9 ) \naddEventHandler(''onMarkerHit'',resourceRoot, function ( hit ) \nif ( hit and getElementType ( hit ) == ''player'' ) then \n givePlayerMoney ( thePlayer, 1000 ) \noutputChatBox(''#ff0000*[ Mission Jump ]لقد فزت بالمسابقة أحسنت صنعاً :)'',hit,255,0,0,true) \n end \nend) \n \naddEventHandler ("onClientGUIClick", resourceRoot, \n function () \n if ( hit and getElementType ( hit ) == ''player'' ) then \n setElementPosition (localPlayer, 214.17950439453, 1901.7315673828, 17.640625) \n end \n end \n) \n \n</pre>\n<div></div>\n<p></p>\n<p> Link to comment
EH10 Posted January 11, 2016 Share Posted January 11, 2016 طيب , وش دخل حدث الزر , + ليه .. خابص كلنت مع سيرفر , # جرب . local Marker = createMarker(x, y, z, "cylinder", 1.5, 255, 0, 0, 180 ) addEventHandler("onMarkerHit", Marker, function(HitELM) if ( getElementType(HitELM) == "player" ) then givePlayerMoney(HitELM, 1500) setElementPosition(HitELM, x, y, z) outputChatBox("#Here", HitELM, 255, 255, 0, true) end end ) Link to comment
Mr.R Posted January 11, 2016 Share Posted January 11, 2016 هذا الكود ينقله واذا تبيه يقتله حط بدل سطر 7 هذا الفنكشن killPed ( HitELM ) أو setElementHealth ( HitELM, 0 ) ماتفرق , اختار الي يعجبك . Link to comment
SycroX Posted January 11, 2016 Share Posted January 11, 2016 + لو سمحت لما تيجي تطرح الأكواد استعمل [lua.] [/lua] شيل ال نقطة طبعا الي في خلها كدا [lua] Link to comment
Mr.R Posted January 11, 2016 Share Posted January 11, 2016 +لو سمحت لما تيجي تطرح الأكواد استعمل [lua.] [/lua] شيل ال نقطة طبعا الي في خلها كدا [lua] https://forum.multitheftauto.com/viewtopic.php?f=160&t=46670 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