Jump to content

Points


pocko

Recommended Posts

Hello i v asking for somethink

So here i found that part of script

addEvent("onPlayerFinish",true) 
addEventHandler("onPlayerFinish",getRootElement(), 
    function (rank,finishtime) 
      local account = getPlayerAccount(source) 
      if isGuestAccount(account) then 
       outputChatBox("You must be logged in to get the points and cash" , source, 255, 0, 0, true) 
     else 
         if rank == 1 then 
             givePlayerMoney(source,1000) 
             setAccountData( account, "Points", +3 ) 
        end 
        if rank == 2 then 
            givePlayerMoney(source,500) 
           setAccountData( account, "Points", +2 )w 
        end 

and that is for race i asking somethink like that but for DD/DM server how must be ?Becouse there don t having Chekpoints or..... So please help me if someone kno

Link to comment

@csmit195 : I was that someone :)

@xtherpr0mise : Well , next time look better of the script

  
addEvent("onPlayerFinish",true) 
addEventHandler("onPlayerFinish",getRootElement(), 
    function (rank,finishtime) 
      local account = getPlayerAccount(source) 
      if isGuestAccount(account) then 
       outputChatBox("You must be logged in to get the points and cash" , source, 255, 0, 0, true) 
     else 
         if rank == 1 then 
             givePlayerMoney(source,1000) 
             setAccountData( account, "Points", +3 ) 
        end 
        if rank == 2 then 
            givePlayerMoney(source,500) 
           setAccountData( account, "Points", +2 ) -- removed the w 
        end 

-- serverside

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...