Forum

> > CS2D > Scripts > Lua say function reset score
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Lua say function reset score

5 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Lua say function reset score

_Ultimate_
User Off Offline

Zitieren
Hey all i truyed to make my first lua today but it does not work please help

1
2
3
4
5
6
7
8
9
10
addhook("say", "sayfunction")

function sayfunction(id, txt)
if(txt=="!resetscore") then
parse("setscore  "..id.." 0"
parse("setdeaths "..id.." 0"
msg("You have RESETED SCORE"
return 1
end
end

and if some body has time can he explain me where is the error ty

alt Re: Lua say function reset score

JONY
User Off Offline

Zitieren
you forgot to close the brackets
addhook("say", "sayfunction")

function sayfunction(id, txt)
if(txt=="!resetscore") then
parse("setscore "..id.." 0")
parse("setdeaths "..id.." 0")
msg("You have RESETED SCORE")
return 1
end
end
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht