Custom skin error -
Zeus666 - 16.01.2018
Hi. When I want to add a skin to NPC, it gives him CJ's skin. Why?
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");
And here's my pawn code.
Code:
new ZSkins[] = { 20002, 20003};
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))
{
SetPlayerSkin(playerid, ZSkins[random(2)]);
Re: Custom skin error -
Lucases - 16.01.2018
Zskin variable?
Re: Custom skin error -
Zeus666 - 16.01.2018
Quote:
Originally Posted by Lucases
Zskin variable?
|
new ZSkins[] = { 20002, 20003};
Re: Custom skin error -
UndertakerLegend - 16.01.2018
You need to change the first parameter, like the first skin added that is 305, maybe it work.
AddCharModel(0, 20003, "zombie1.dff", "zombie1.txd"); to AddCharModel(305, 20003, "zombie1.dff", "zombie1.txd");
AddCharModel(0, 20004, "zombie2.dff", "zombie2.txd"); to AddCharModel(305, 20004, "zombie2.dff", "zombie2.txd");
Re: Custom skin error -
RogueDrifter - 17.01.2018
Probably because of the GetPlayerSkin maybeee its oriented there but give my include a shot if it doesn't work then the function was not implemented. here's the link
http://forum.sa-mp.com/showthread.ph...29#post3978829
Re: Custom skin error -
Zeus666 - 17.01.2018
The ideea is that when I start the server, it won't show artconfig area that skins are loaded, it won't show anything about artconfig.
And in pwn, i haven't added anything about artconfig
Re: Custom skin error -
RogueDrifter - 17.01.2018
put in your server.cfg file param
useartwork 1
Re: Custom skin error -
Zeus666 - 17.01.2018
Ty, but now how can I give a download link to all users of my custom skins? to download faster
Re: Custom skin error -
Zeus666 - 17.01.2018
And it is possible to add custom weapons?
Re: Custom skin error -
RogerCosta - 17.01.2018
Quote:
Originally Posted by Zeus666
And it is possible to add custom weapons?
|
Native, no. But, you can use AddSimpleModel for download de weapon objects, and use SetPlayerAttachObject in skin hands.
Re: Custom skin error -
RogueDrifter - 17.01.2018
Quote:
Originally Posted by Zeus666
And it is possible to add custom weapons?
|
You can't add custom weapons but u can do what Roger said but i suggest not giving a link to players to download and let them do it ingame although if u face any problems u can download the cache crc files yourself then go to GTA-> USERFILES->CACH-> and in that cache folder you'll see a folder named with the ip of your server you can zip all the crc files then upload them anywhere then send the DL Link to your members and tell them to put it in the proper folder.
Re: Custom skin error -
Mugala - 27.01.2018
use another baseid instead of CJ's skinid, and correct this one
new ZSkins[] = { 20003, 20004};
instead of
new ZSkins[] = { 20002, 20003};