Forum

> > CS2D > Scripts > message didn't works
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch message didn't works

4 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt message didn't works

J4x
User Off Offline

Zitieren
Hi guys, here is my killstreak script, the script should send a message when i kill 2 player but it didn't works..

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
addhook("kill","streak2")
function streak2(id,x,y,victim,killer,weapon)
if player(killer,"score") == 2 then
if player(killer,"deaths") == 0 then
msg("©000255000"..player(killer,"name").." Made 2 kills in a row!")
end
end
end

addhook("kill","streak3")
function streak3(id,x,y,victim,killer,weapon)
if player(killer,"score")== 5 then
if player(killer,"deaths") == 0 then
msg("©000255000"..player(killer,"name").." Is a semi - pro!")
end
end
end

Thanks for your help
~ FN_Linkin Park

alt Re: message didn't works

EngiN33R
Moderator Off Offline

Zitieren
1
2
3
4
5
addhook("kill","streak2")
function streak2(id,x,y,victim,killer,weapon)

addhook("kill","streak3")
function streak3(id,x,y,victim,killer,weapon)

You can't mix parameters up. They should be in following order (for kill hook) - killer,victim,weapon,x,y
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht