ABO-SR777777A Posted October 29, 2012 Posted October 29, 2012 السلام عليكم شباب ابي كود او مايدخل الاعب معه فلوس بس ابي الايفنت والاشياء الباقيه مابي الكود جاهز
ABO-SR777777A Posted October 29, 2012 Author Posted October 29, 2012 صح الكود function onJoin ( ) givePlayerMoney ( source, 1000 ) end addEventHandler ( "onPlayerJoin", getRootElement(), onJoin ) ض11ض1ض11ض1ض1ض1 سهل
ABO-SR777777A Posted October 29, 2012 Author Posted October 29, 2012 خلاص جزاك الله خير اشتغل بس ممكن تديني الواضايف والافنت المهممه في كل كود اقدر اخلي اذا مات تجي للقتال فلوس امسح ذا givePlayerMoney ( source, 1000 ) واضيف بداله givePlayerMoney ( killer, 1000 ) !؟
./BlackBird# Posted October 29, 2012 Posted October 29, 2012 صح بس حط الايفينت onPlayerWasted و حط عند القوسين الي جنب اسم الفنكشن function giveKiller(killer) و راح يشتغل
ABO-SR777777A Posted October 29, 2012 Author Posted October 29, 2012 يعني يسير كذا function giveKiller(killer) givePlayerMoney ( killer, 1000 ) end addEventHandler ( "onPlayerWasted", getRootElement(), onJoin ) --- هنا يتغير ؟؟ 1جزاك الله خير بس ابي يطلع له كلام اذا قتل وعدد الفلوس
AhmadQTR Posted October 29, 2012 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 )
ABO-SR777777A Posted October 29, 2012 Author Posted October 29, 2012 زي الى سويته بس عدل ذي function giveKiller(killer) givePlayerMoney ( killer, 1000 ) end addEventHandler ( "onPlayerWasted", getRootElement(), giveKiller )-- هنا بس الى غيرته بس جزاك الله خير على الرد
./BlackBird# Posted October 29, 2012 Posted October 29, 2012 ضيف ذا تحت اعطاء الفلوس outputChatBox("كلام هنا",killer,0,255,0) -- عشان يجي الكلام للقاتل killer انا كتبت
AhmadQTR Posted October 29, 2012 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 )
ABO-SR777777A Posted October 29, 2012 Author 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 انا احدد ؟ كيف
AhmadQTR Posted October 29, 2012 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 اما الطلب الثاني ماعرفتله اسمحلي
ABO-SR777777A Posted October 29, 2012 Author Posted October 29, 2012 قصدي مو صوره يجيله لقد قتلت الاعب يجي اسم الاعب واخذت مثلا 100 ريال
./BlackBird# Posted October 29, 2012 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
ABO-SR777777A Posted October 29, 2012 Author 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
./BlackBird# Posted October 29, 2012 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
ABO-SR777777A Posted October 29, 2012 Author Posted October 29, 2012 طيب مافي اي سيرفر اجرب فيه المشكله اني اجرب الاكواد من هوست قيمي
TAPL Posted October 29, 2012 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
./BlackBird# Posted October 29, 2012 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 كنت مستعجل و الكيبورد عندي لازم تظغط بقوه
TAPL Posted October 29, 2012 Posted October 29, 2012 يعني الكود الصحيح وش نترك لك المجال تصلحه بنفسك بعد ما حددنا لك الأخطاء
ABO-SR777777A Posted October 29, 2012 Author 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
AhmadQTR Posted October 29, 2012 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استعمل
ABO-SR777777A Posted October 29, 2012 Author Posted October 29, 2012 (edited) خلاص حملته بس لو ابي اعر فالخطأ كيف Edited October 29, 2012 by Guest
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