Jump to content

السلام عليكم ممكن مسأعده


Recommended Posts

السلام عليكم ورحمة الله وبركاته

انا ابغاء كود الي هو

Points , race

نقاط الريس

مثال يعني انت فزت المركز الاول تأخذ 300 نققطه

المركز الثاني 200 المركز الاول 50

احتأأج مسأعده تكفون

Link to comment

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...