Forum

> > CS2D > Scripts > Killstreak script: "(" expected near "x"
Forums overviewCS2D overview Scripts overviewLog in to reply

English Killstreak script: "(" expected near "x"

2 replies
To the start Previous 1 Next To the start

old Killstreak script: "(" expected near "x"

J4x
User Off Offline

Quote
Hi im making a killstreak script for the mw2 mod i make this code:
1
2
3
4
5
6
addhook("kill","killstreaks")
function killstreaks(id,weapon,x,y)
if player(id,"score") == 4 then 
parse("spawnitem 58 player(id,"x"),player(id,"y")
end
end
but when i open the console it say me this "(" expected near "x"

old Re: Killstreak script: "(" expected near "x"

FlooD
GAME BANNED Off Offline

Quote
FN_Linkin Park has written
Hi im making a killstreak script for the mw2 mod i make this code:
1
2
3
4
5
6
addhook("kill","killstreaks")
function killstreaks(id,weapon,x,y)
if player(id,"score") == 4 then 
parse("spawnitem 58 "..player(id,"x").." "..player(id,"y"))
end
end
but when i open the console it say me this "(" expected near "x"

fixed
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview