16.01.2018, 20:15
Hi. When I want to add a skin to NPC, it gives him CJ's skin. Why?
Here's my artconfig
And here's my pawn code.
Here's my artconfig
Code:
AddCharModel(305, 20001, "lvpdpc2.dff", "lvpdpc2.txd"); AddCharModel(305, 20002, "lapdpd2.dff", "lapdpd2.txd"); AddSimpleModel(-1,19379, -2000, "wallzzz.dff", "wallzzz.txd"); AddCharModel(0, 20003, "zombie1.dff", "zombie1.txd"); AddCharModel(0, 20004, "zombie2.dff", "zombie2.txd");
Code:
new ZSkins[] = { 20002, 20003}; public OnPlayerSpawn(playerid) { if(IsPlayerNPC(playerid)) { SetPlayerSkin(playerid, ZSkins[random(2)]);