Forum

> > CS2D > Scripts > message didn't works
Forums overviewCS2D overview Scripts overviewLog in to reply

English message didn't works

4 replies
To the start Previous 1 Next To the start

old message didn't works

J4x
User Off Offline

Quote
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

old Re: message didn't works

EngiN33R
Moderator Off Offline

Quote
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
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview