Forum

> > CS2D > Scripts > Give points after take gold/coins/money
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Give points after take gold/coins/money

Keine Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Give points after take gold/coins/money

MixTape
User Off Offline

Zitieren
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
1× editiert, zuletzt 01.08.15 00:13:28
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht