Forum

> > CS2D > Scripts > How add gas mask and skin for zm
Forums overviewCS2D overview Scripts overviewLog in to reply

English How add gas mask and skin for zm

5 replies
To the start Previous 1 Next To the start

old Re: How add gas mask and skin for zm

Yates
Reviewer Off Offline

Quote
You need to spawn the item at player x y then setpos the player -32 pixels (x or y, doesn't matter) then +32 so the player teleports on the same spot and therefore picks up the mask.

old Re: How add gas mask and skin for zm

infinity
User Off Offline

Quote
Gas mask id is 60

I have something like

function equip(id,item)
parse("spawnitem "..item.." "..player(id,"tilex").." "..player(id,"tiley"))
local tmp={player(id,"x"),player(id,"y")}
parse("setpos "..id.." " 1 1")
parse("setpos "..id.." "..tmp[1].." "..tmp[2])
end


this just do not know how to do it to a gas mask was in the shop people
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview