N3xT Posted April 24, 2015 Share Posted April 24, 2015 السسلام عليكم # الكل قد شاف المود الموجود ف تابات الريس Rank + Level ( EXP ) فكرته كل ما تلعب يزيد اللفل حقك وكذا + والرانك يطلع من اكثر لفل مثلا انا اكثر لفل يطلع لي رانك 1 الخخ م عرفت بالظبط وش أستخدم ي ليت تساعدوني Link to comment
</Mr.Tn6eL> Posted April 25, 2015 Share Posted April 25, 2015 https://wiki.multitheftauto.com/wiki/Resource:Race اقرا الصفحة واستخدم onPlayerFinish onPlayerRaceWasted setElementData getElementData getPlayerAccount setAccountData getAccountData Link to comment
N3xT Posted April 25, 2015 Author Share Posted April 25, 2015 https://wiki.multitheftauto.com/wiki/Resource:Raceاقرا الصفحة واستخدم onPlayerFinish onPlayerRaceWasted setElementData getElementData getPlayerAccount setAccountData getAccountData م فهمت ولا حرف Link to comment
><? Posted April 25, 2015 Share Posted April 25, 2015 هو اعطاك الفنكشنات والايفنت الي لازم تستخدمهم انته سوي المود وحاول فيه اذا ما زبط حطه هنا والشباب يساعدوك انته ادخل الفنكشنات من الويكي وشوف الامثله عليا وحاول .. تقبل مروري Link to comment
shwaeki Posted April 25, 2015 Share Posted April 25, 2015 شوف هاد الموضوع يفيدك viewtopic.php?f=160&t=75149&p=692475&hilit=onPlayerRaceWasted#p692475 Link to comment
</Mr.Tn6eL> Posted April 25, 2015 Share Posted April 25, 2015 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
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