Qwerty~/> Posted May 5, 2014 Share Posted May 5, 2014 السلام عليكم ورحمة الله وبركاته انا ابغاء كود الي هو Points , race نقاط الريس مثال يعني انت فزت المركز الاول تأخذ 300 نققطه المركز الثاني 200 المركز الاول 50 احتأأج مسأعده تكفون Link to comment
jafar Posted May 6, 2014 Share Posted May 6, 2014 Event's : onPlayerFinsh int rank, int time Source : The source is the player that finished the race. Function's : setElementData setAccountData Link to comment
Qwerty~/> Posted May 6, 2014 Author Share Posted May 6, 2014 حد يقدر يسويها للي تكففون Link to comment
</Mr.Tn6eL> Posted May 6, 2014 Share Posted May 6, 2014 addEventHandler("onPlayerFinish", function(rank, time) ---------------- Complete Here end ) كمل الباقي Link to comment
Qwerty~/> Posted May 6, 2014 Author Share Posted May 6, 2014 طيب ممكن حد يسويه :] لاني زهقت قسم Link to comment
ALw7sH Posted May 6, 2014 Share Posted May 6, 2014 الايفنت الي عطيتوه لمابات الريس اذا وصل اخر cheakpoint استخدم Event's 'onPlayerRaceWasted' Link to comment
#DRAGON!FIRE Posted May 6, 2014 Share Posted May 6, 2014 addEventHandler( "onPlayerRaceWasted", root, function( ) if ( source and source ~= nil ) then if ( exports [ "race" ]:getPlayerRank ( source ) == 1 ) then givePlayerMoney ( source, 300 ) outputChatBox( "* "..getPlayerName( source ).." has got 300" , root, 255, 255 ,0, true ) elseif ( exports [ "race" ]:getPlayerRank ( source ) == 2 ) then givePlayerMoney ( source, 200 ) outputChatBox( "* "..getPlayerName( source ).." has got 200" , root, 255, 255 ,0, true ) elseif ( exports [ "race" ]:getPlayerRank ( source ) == 3 ) then givePlayerMoney ( source, 50 ) outputChatBox( "* "..getPlayerName( source ).." has got 50" , root, 255, 255 ,0, true ) end end end ) Link to comment
Qwerty~/> Posted May 6, 2014 Author Share Posted May 6, 2014 الكود مو شغأأل هل يمكن عشان الماب DM ? Link to comment
#DRAGON!FIRE Posted May 6, 2014 Share Posted May 6, 2014 ماله دخل .. شف الديبوق فيه شي ؟ Link to comment
Qwerty~/> Posted May 6, 2014 Author Share Posted May 6, 2014 ما فيه شيء + لحد يحسب اني غي حاطه كلاينت لا سيرفر Link to comment
#DRAGON!FIRE Posted May 6, 2014 Share Posted May 6, 2014 جربت تموت .. واهم شي يكون معاك ناس موجودين يوم تجي الاول .. يجي بالشات للكل انك اخذت المبلغ كذا كذا Link to comment
Qwerty~/> Posted May 6, 2014 Author Share Posted May 6, 2014 يب جربت ما جأأني شيء + ما طلع بأشات شء 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