ABO-SR777777A Posted October 29, 2012 Share Posted October 29, 2012 السلام عليكم شباب ابي كود او مايدخل الاعب معه فلوس بس ابي الايفنت والاشياء الباقيه مابي الكود جاهز Link to comment
abu5lf Posted October 29, 2012 Share Posted October 29, 2012 'onPlayerJoin' + givePlayerMoney Link to comment
ABO-SR777777A Posted October 29, 2012 Author Share Posted October 29, 2012 صح الكود function onJoin ( ) givePlayerMoney ( source, 1000 ) end addEventHandler ( "onPlayerJoin", getRootElement(), onJoin ) ض11ض1ض11ض1ض1ض1 سهل Link to comment
ABO-SR777777A Posted October 29, 2012 Author Share Posted October 29, 2012 خلاص جزاك الله خير اشتغل بس ممكن تديني الواضايف والافنت المهممه في كل كود اقدر اخلي اذا مات تجي للقتال فلوس امسح ذا givePlayerMoney ( source, 1000 ) واضيف بداله givePlayerMoney ( killer, 1000 ) !؟ Link to comment
./BlackBird# Posted October 29, 2012 Share Posted October 29, 2012 صح بس حط الايفينت onPlayerWasted و حط عند القوسين الي جنب اسم الفنكشن function giveKiller(killer) و راح يشتغل Link to comment
ABO-SR777777A Posted October 29, 2012 Author Share Posted October 29, 2012 يعني يسير كذا function giveKiller(killer) givePlayerMoney ( killer, 1000 ) end addEventHandler ( "onPlayerWasted", getRootElement(), onJoin ) --- هنا يتغير ؟؟ 1جزاك الله خير بس ابي يطلع له كلام اذا قتل وعدد الفلوس Link to comment
AhmadQTR Posted October 29, 2012 Share Posted October 29, 2012 يعني يسير كذا function giveKiller(killer) givePlayerMoney ( killer, 1000 ) end addEventHandler ( "onPlayerWasted", getRootElement(), onJoin ) --- هنا يتغير ؟؟ 1جزاك الله خير بس ابي يطلع له كلام اذا قتل وعدد الفلوس function giveKiller(killer) givePlayerMoney ( killer, 1000 ) end addEventHandler ( "onPlayerWasted", getRootElement(), giveKiller ) Link to comment
ABO-SR777777A Posted October 29, 2012 Author Share Posted October 29, 2012 زي الى سويته بس عدل ذي function giveKiller(killer) givePlayerMoney ( killer, 1000 ) end addEventHandler ( "onPlayerWasted", getRootElement(), giveKiller )-- هنا بس الى غيرته بس جزاك الله خير على الرد Link to comment
./BlackBird# Posted October 29, 2012 Share Posted October 29, 2012 ضيف ذا تحت اعطاء الفلوس outputChatBox("كلام هنا",killer,0,255,0) -- عشان يجي الكلام للقاتل killer انا كتبت Link to comment
AhmadQTR Posted October 29, 2012 Share Posted October 29, 2012 زي الى سويته بس عدل ذي function giveKiller(killer) givePlayerMoney ( killer, 1000 ) end addEventHandler ( "onPlayerWasted", getRootElement(), giveKiller )-- هنا بس الى غيرته بس جزاك الله خير على الرد اسف يا اخوي هذا الكود function giveKiller(killer) givePlayerMoney ( killer, 1000 ) outputChatBox ( "You have killed a player and gained 1000!", killer ) end addEventHandler ( "onPlayerWasted", getRootElement(), giveKiller ) Link to comment
ABO-SR777777A Posted October 29, 2012 Author Share Posted October 29, 2012 زي كذا function giveKiller(killer) givePlayerMoney ( killer, 1000 ) outputChatBox ( "You have killed a player and gained 1000!", killer ) end addEventHandler ( "onPlayerWasted", getRootElement(), giveKiller ) ولو ابي اللونه function giveKiller(killer) givePlayerMoney ( killer, 1000 ) outputChatBox ( "outputChatBox("كلام هنا",killer,0,255,0)", killer ) --- اكتب االلون الىى ابيه end addEventHandler ( "onPlayerWasted", getRootElement(), giveKiller ) زي كذا طيب ابيه لو قتل مثل بيقل يجيله 55 ريال سنبره 100 انا احدد ؟ كيف Link to comment
AhmadQTR Posted October 29, 2012 Share Posted October 29, 2012 زي كذا function giveKiller(killer) givePlayerMoney ( killer, 1000 ) outputChatBox ( "You have killed a player and gained 1000!", killer ) end addEventHandler ( "onPlayerWasted", getRootElement(), giveKiller ) ولو ابي اللونه function giveKiller(killer) givePlayerMoney ( killer, 1000 ) outputChatBox ( "outputChatBox("كلام هنا",killer,0,255,0)", killer ) --- اكتب االلون الىى ابيه end addEventHandler ( "onPlayerWasted", getRootElement(), giveKiller ) زي كذا طيب ابيه لو قتل مثل بيقل يجيله 55 ريال سنبره 100 انا احدد ؟ كيف الطلب الاول : https://wiki.multitheftauto.com/wiki/OutputChatBox اما الطلب الثاني ماعرفتله اسمحلي Link to comment
ABO-SR777777A Posted October 29, 2012 Author Share Posted October 29, 2012 قصدي مو صوره يجيله لقد قتلت الاعب يجي اسم الاعب واخذت مثلا 100 ريال Link to comment
./BlackBird# Posted October 29, 2012 Share Posted October 29, 2012 addEventHandler("onPlayerWasted", getRootElement() function(killer) money = math.random(200,1000) givePlayerMoney(killer,money) name = getPlayerName(source) outputChatBox("You killed"..name.."and get"..money,killer,0,255,0) end Link to comment
ABO-SR777777A Posted October 29, 2012 Author Share Posted October 29, 2012 addEventHandler("onPlayerWasted", getRootElement() function(killer) money = math.random(200,1000) givePlayerMoney(killer,money) name = getPlayerName(source) outputChatBox("You killed"..name.."and get"..money,killer,0,255,0) end addEventHandler("onPlayerWasted", getRootElement() function(killer) money = math.random(200,1000) -- هنا حق وش ذا يعطي المبلغ givePlayerMoney(killer,money) name = getPlayerName(source) outputChatBox("You killed"..name.."and get"..money,killer,0,255,0) end Link to comment
./BlackBird# Posted October 29, 2012 Share Posted October 29, 2012 addEventHandler("onPlayerWasted", getRootElement() function(killer) money = math.random(200,1000) givePlayerMoney(killer,money) name = getPlayerName(source) outputChatBox("You killed"..name.."and get"..money,killer,0,255,0) end addEventHandler("onPlayerWasted", getRootElement() function(killer) money = math.random(200,1000) -- هنا حق وش ذا يعطي المبلغ givePlayerMoney(killer,money) name = getPlayerName(source) outputChatBox("You killed"..name.."and get"..money,killer,0,255,0) end هذا يجيب رقم عشوائي بين 200 و 1000 Link to comment
ABO-SR777777A Posted October 29, 2012 Author Share Posted October 29, 2012 طيب مافي اي سيرفر اجرب فيه المشكله اني اجرب الاكواد من هوست قيمي Link to comment
TAPL Posted October 29, 2012 Share Posted October 29, 2012 addEventHandler("onPlayerWasted", getRootElement() function(killer) money = math.random(200,1000) givePlayerMoney(killer,money) name = getPlayerName(source) outputChatBox("You killed"..name.."and get"..money,killer,0,255,0) end getRootElement() ناقص فاصله في أول سطر بعد ناقص قوس في سطر 7 بعد الأند هو عدد الطلقات onPlayerWasted أول بارتمر في أفنت https://wiki.multitheftauto.com/wiki/OnPlayerWasted Link to comment
./BlackBird# Posted October 29, 2012 Share Posted October 29, 2012 addEventHandler("onPlayerWasted", getRootElement() function(killer) money = math.random(200,1000) givePlayerMoney(killer,money) name = getPlayerName(source) outputChatBox("You killed"..name.."and get"..money,killer,0,255,0) end getRootElement() ناقص فاصله في أول سطر بعد ناقص قوس في سطر 7 بعد الأند هو عدد الطلقات onPlayerWasted أول بارتمر في أفنت https://wiki.multitheftauto.com/wiki/OnPlayerWasted كنت مستعجل و الكيبورد عندي لازم تظغط بقوه Link to comment
ABO-SR777777A Posted October 29, 2012 Author Share Posted October 29, 2012 يعني الكود الصحيح وش Link to comment
TAPL Posted October 29, 2012 Share Posted October 29, 2012 يعني الكود الصحيح وش نترك لك المجال تصلحه بنفسك بعد ما حددنا لك الأخطاء Link to comment
ABO-SR777777A Posted October 29, 2012 Author Share Posted October 29, 2012 addEventHandler("onPlayerWasted", getRootElement(), function(killer) money = math.random(200,1000) givePlayerMoney(killer,money) name = getPlayerName(source) outputChatBox("You killed"..name.."and get"..money,killer,0,255,0) end) صح ض1ض1ض1ض1 Link to comment
AhmadQTR Posted October 29, 2012 Share Posted October 29, 2012 addEventHandler("onPlayerWasted", getRootElement(), function(killer) money = math.random(200,1000) givePlayerMoney(killer,money) name = getPlayerName(source) outputChatBox("You killed"..name.."and get"..money,killer,0,255,0) end) صح ض1ض1ض1ض1 يب عشان تشوف الاخطاءMTASA Script Editorاستعمل Link to comment
ABO-SR777777A Posted October 29, 2012 Author Share Posted October 29, 2012 (edited) خلاص حملته بس لو ابي اعر فالخطأ كيف Edited October 29, 2012 by Guest 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