
Sil3nT
Members-
Posts
50 -
Joined
-
Last visited
Everything posted by Sil3nT
-
Uhmm nothing just my drifting counter and on scoreboard is Drift rank List and there is only sucky
-
nop. Just doesnt changing rank!
-
With drifting on SF airport then i stoped on 1mil and i was "Sucky"
-
Yeah i get 1 milion
-
Nop doesnt changing the drift rank! Mybe add me on skype? nick mazais233 (search for sil3nt)
-
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
-
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 )
-
Nop And best drift isnt saving
-
Nothing
-
The Drift rank list isnt showing in tab
-
Ok i will test. tnx a lot :* :D:D
-
So what i need to do?
-
Yeah
-
https://community.multitheftauto.com/in ... ils&id=556
-
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?
-
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?
-
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!
-
Nop nothing hapened! mybe need to change that eventhandler? and those local strings!
-
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 )
-
Ok. Brb
-
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,
-
ok i will change. Tnx. BRB
-
Doesnt show ranks in tab column "Drift Rank"
-
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 )