Jump to content

Sil3nT

Members
  • Posts

    50
  • Joined

  • Last visited

Everything posted by Sil3nT

  1. Uhmm nothing just my drifting counter and on scoreboard is Drift rank List and there is only sucky
  2. With drifting on SF airport then i stoped on 1mil and i was "Sucky"
  3. Nop doesnt changing the drift rank! Mybe add me on skype? nick mazais233 (search for sil3nt)
  4. Okay now i have everything! But that rank isnt changing if i beat sucky drift rank then its not changing on newbie Do we dont need like onElementDataChange
  5. exports.scoreboard:addScoreboardColumn('Drift Rank') addEventHandler ( "onPlayerLogin", root, function ( _, account ) local driftPoints = tonumber ( getAccountData ( account, "Best Drift" ) ) or 0 checkDrift ( source, driftPoints ) end ) addEvent ( "onPlayerGotBetterDrift", true ) addEventHandler ( "onPlayerGotBetterDrift", root, function ( value ) checkDrift ( source, value ) end ) function checkDrift ( thePlayer, value ) if ( value >= 0 ) and ( value <= 29999 ) then setElementData ( thePlayer, "Drift Rank", "Sucky" ) elseif ( value >= 30000 ) and ( value <= 89999 ) then setElementData ( thePlayer, "Drift Rank", "Newbie" ) elseif ( value >= 90000 ) and ( value <= 149999 ) then setElementData ( thePlayer, "Drift Rank", "Grandpa" ) end end )
  6. The Drift rank list isnt showing in tab
  7. https://community.multitheftauto.com/in ... ils&id=556
  8. I want that! That u do yor best drift then your rank wil change, and when u beat your best drift again, the rank will change too. Then i nee eventhandler onElementDataChange, būt, there is one būt. How can i save best drift. Is there any script or i need to configure existing drift resource?
  9. Yeah now it works. But my best drift isnt saving script fault and every time when im going in server there is output chat your best drift is 0 and drift rank is sucky! Then i have problem in drift resource right? i need to do like umm best drift is saving?
  10. umn like other resources! replace old strings to new ones then i do refresh and then restart (that resource) then go in server make some drift and nothing hapened!
  11. Nop nothing hapened! mybe need to change that eventhandler? and those local strings!
  12. Nop Nothing addEventHandler("onPlayerSpawn",root, function() local account = getPlayerAccount(source) local bestdrift = getAccountData(account,"Best Drift") if (bestdrift >= 0) and (bestdrift <= 29999) then setElementData ( source, "Drift Rank", "Sucky" ) elseif (bestdrift >= 30000) and (bestdrift <= 89999) then setElementData ( source, "Drift Rank", "Newbie" ) elseif (bestdrift >= 90000) and (bestdrift <= 149999) then setElementData ( source, "Drift Rank", "Grandpa" ) end end )
  13. Nothing hapened. Its still wont showing those ranks addEventHandler("onPlayerSpawn",root, function() local account = getPlayerAccount(source) local bestdrift = getAccountData(account,"Best Drift") if (bestdrift >= 0) and (bestdrift <= 29999) then setElementData ( account, "Drift Rank", "Sucky" ) elseif (bestdrift >= 30000) and (bestdrift <= 89999) then setElementData ( account, "Drift Rank", "Newbie" ) elseif (bestdrift >= 90000) and (bestdrift <= 149999) then setElementData ( account, "Drift Rank", "Grandpa" ) end end ) I think somthing wrong is with addEventHandler("onPlayerSpawn",root,
  14. Doesnt show ranks in tab column "Drift Rank"
  15. What i have do wrong? Please help!!!! exports.scoreboard:addScoreboardColumn('Drift Rank') addEventHandler("onPlayerSpawn",root, function() local account = getPlayerAccount(source) local bestdrift = getAccountData(account,"Best Drift") if (bestdrift >= 0) and (bestdrift <= 29999) then setAccountData ( account, "Drift Rank", "Sucky" ) elseif (bestdrift >= 30000) and (bestdrift <= 89999) then setAccountData ( account, "Drift Rank", "Newbie" ) elseif (bestdrift >= 90000) and (bestdrift <= 149999) then setAccountData ( account, "Drift Rank", "Grandpa" ) end end )
×
×
  • Create New...