Zombie Skins
5 replies



09.05.21 06:59:22 am
Hi
i want zombie skins like you can choose zombie skin when you press M then 1... i will replace terrorists with new zombies so if you can help me pls help


Bad Life
Code:
1
2
3
4
5
6
7
2
3
4
5
6
7
addhook("spawn","spawn")
function spawn(id)
if player(id,"team")==1 and player(id,"look")==1 then
id1=image("gfx/files/zombie.bmp",2,1,200+id) --
freeimage(id)
end
end
function spawn(id)
if player(id,"team")==1 and player(id,"look")==1 then
id1=image("gfx/files/zombie.bmp",2,1,200+id) --
freeimage(id)
end
end
2084729947754920835
@
NanuPlayer: Do you want only four skins that you can select from the team menu? If so, use server mods.

CS2D/mods/...
Look at me standing, here on my own again
@
Mami Tomoe: game mode is zombies but i cant choose terrorist skins for zombies thats the problem

Bad Life
@
NanuPlayer: That's because zombies only have 1 skin, it's placed in the
If you want to change it, I recommend using mods, also, you can only have 1 skin through that menu.
Though, with enough Lua knowledge, you can use the
player function, and spreadsheet images similar to the way @
Unknown_Cheater did them, but even then, on the team menu, you'd still only see the default skin, and you'd not naturally know which skin you're getting, until you choose it.
Note: The
EDIT:
Note that the

CS2D/gfx/npc/zombie.bmp
file.If you want to change it, I recommend using mods, also, you can only have 1 skin through that menu.
Though, with enough Lua knowledge, you can use the
look
attribute of the 

Note: The
look
attribute is indexed at 0, rather than 1 (which goes against all known laws for Lua scripting), which means it's 0 to 3, rather than 1 to 4.EDIT:
Note that the
CS2D/gfx/npc/zombie.bmp
file is shared between both zombie players, and zombie NPCs! edited 2×, last 09.05.21 12:48:31 pm
Look at me standing, here on my own again



