Jump to content

[Race][Help]Get money and points if win?


hutin123

Recommended Posts

Posted
function hunter(number,sort,model) 
    if sort == "vehiclechange" then 
        if model == 425 then 
            --do something 
        end 
    end 
end 
addEventHandler("onPlayerPickUpRacePickup",root,hunter) 

357ac0078264.jpg

- Working on [php/HTML/Mysql/Lua/Java Scripts/Web Design/3D Modeling]

Posted
can you show me details, if i want this:

Get hunter will earn 2000$ and 2 points

Where i put that code?

u have the database with table cash and points?

Post here the name if u have this.

Posted

i made that scripts, and u need getPlayerRank and setElementData

My scripts: toptimes on scoreboard (server21)

Screen on login(scren)

Score on scoreboard (score)

Posted

WE CANNOT MAKE YOU THE CODE, IF WE MAKE IT U WILL NOT LEARN.. Read introduction to scripting

My scripts: toptimes on scoreboard (server21)

Screen on login(scren)

Score on scoreboard (score)

Posted
function hunter(number,sort,model) 
    if sort == "vehiclechange" then 
        if model == 425 then 
            --do something 
        end 
    end 
end 
addEventHandler("onPlayerPickUpRacePickup",root,hunter) 

I try this, thx but if i get many hunter same time, the money will be x2, x3,.... even x10 . OMG, can fix it?

560x95_FFFFFF_FF9900_000000_000000.png

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