pocko Posted January 15, 2012 Posted January 15, 2012 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
codeluaeveryday Posted January 16, 2012 Posted January 16, 2012 This isnt his code. He is too noob. I helped someone the otherday with this. Someone helped someone, then i improved that someones script!
BriGhtx3 Posted January 16, 2012 Posted January 16, 2012 He wrote he found this script. I realized that he is a noob, but alright I think he wont answer
GanJaRuleZ Posted January 16, 2012 Posted January 16, 2012 @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
pocko Posted January 17, 2012 Author Posted January 17, 2012 and not work i don t know why but not work i tryed 2 scripts and nothing...
BriGhtx3 Posted January 18, 2012 Posted January 18, 2012 @Ganja why should I search after a w? I think he could figure the error out himself.
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