Forum

> > CS2D > Scripts > How add gas mask and skin for zm
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch How add gas mask and skin for zm

5 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Re: How add gas mask and skin for zm

Yates
Reviewer Off Offline

Zitieren
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.

alt Re: How add gas mask and skin for zm

infinity
User Off Offline

Zitieren
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
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht