Jump to content

how can i change into??. here my code


Recommended Posts

dude!! this is 3rd or something topic about the same problem..

and for 2 scripts you said that it was working, then after 2 days you are creating new topic about that problem, that was fixed..

whats wrong with you?

https://forum.multitheftauto.com/viewtop ... 7&start=15

and sorry, if you dont know how to implement WORKING examples into your scripts, better try to read something

https://wiki.multitheftauto.com/

Link to comment

anyway:

1. no need for another topic

2. you don't want to learn anything, am i right? you didnt make anything in lua. we are always doing the job for you.. this forum is for helping, not doing others job. have you ever open wiki.multitheftauto.com? lua editor? try to make anything?

Link to comment
anyone can hlp me?

this is a kind of example for you :)

localPlayer = getLocalPlayer()
 
function addColumns()
exports.scoreboard:scoreboardAddColumn("Points")
setElementData(localPlayer,"Points",0)
end
addEventHandler("onClientResourceStart",getResourceRootElement(),addColumns)
 
function addPoints()
setElementData(getLocalPlayer(),"Points",tonumber(getElementData(getLocalPlayer(),"Points"))+100)
end
addCommandHandler("add",addPoints)
 
function takePoints()
setElementData(getLocalPlayer(),"Points",tonumber(getElementData(getLocalPlayer(),"Points"))-10)
end
addEventHandler ( "onClientPlayerWasted", getLocalPlayer(), takePoints )

this will give u 100 points if u do /add and will take 10 points if u die.

Link to comment

You could make a label at the side of the screen saying somthing like "points" and make a marker at the end of the race, then do on marker hit and make it so it makes the label "points:1" and then do destroyElement so no one else can get the point.

Link to comment
You could make a label at the side of the screen saying somthing like "points" and make a marker at the end of the race, then do on marker hit and make it so it makes the label "points:1" and then do destroyElement so no one else can get the point.

why doing so weird way, if theres event after race finish? :/

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