do you know how to make a scenario you drop a gut bomb and appear 2 things usp and awp? help me?
Forum
CS2D Scripts Script Gut bombScript Gut bomb
14 replies 1
do you know how to make a scenario you drop a gut bomb and appear 2 things usp and awp? help me?
edited 1×, last 28.01.19 05:04:29 pm
Will gut bomb be removed when you drop it or will it stay?
Will the items appear at the tile which we exactly are staying on at that moment, or will they be equipped to yourself?
Let's say the code is not going to make us equipped these and instead they'll spawn somewhere, will they spawn as messy (randomly-like) or exactly under of us?
So after these questions are answered, the current code could be changed subsequently.
1
2
3
4
5
6
7
2
3
4
5
6
7
addhook("drop", "_drop") function _drop(id, iid, type, ain, a, mode, x, y) if type == 86 then parse("spawnitem 1 "..x.." "..y) parse("spawnitem 35 "..x.." "..y) end end
Look. The player throws a gut bomb and an awp and USP appears. Appear in the place where the player threw the gut bomb, can take these things, and they no longer appears if the player does not throw another gut bomb. and if the player threw a gut bomb it disappears.
sorry for my English
edited 2×, last 28.01.19 05:04:21 pm
NeptooN has written
can you read? @ deletemyacc: I tried, I couldn't.
edited 1×, last 28.01.19 05:04:13 pm
function projectile
spawnitem floor(position/32)
end
You'll need addhook, parse, spawnitem and math.floor functions to accomplish what you want. Naturally, the code above is a pseudo code to point you towards the correct direction.
Good luck
@ deletemyacc: Yes, I'm very difficult I do not understand
edited 1×, last 28.01.19 05:04:50 pm
Thank you
1