Forum

> > CS2D > Scripts > Give points after take gold/coins/money
Forums overviewCS2D overview Scripts overviewLog in to reply

English Give points after take gold/coins/money

No replies
To the start Previous 1 Next To the start

old Give points after take gold/coins/money

MixTape
User Off Offline

Quote
Hi guys, i dont know how to add points when player take gold. I know, i must add this code in script, but how to define gold in script?

1
SetPoints(id, playerData[id].points+50)

//Edit: I was trying with this code, but im not good in this yet.

1
2
3
4
5
6
addhook("walkover","takepoint")
function takepoint(id,item)
     if item==68 then
          SetPoints(id, playerData[id].points+50)
               end
          end
edited 1×, last 01.08.15 12:13:28 am
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview