Custom skin error
#1

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)]);
Reply
#2

Zskin variable?
Reply
#3

Quote:
Originally Posted by Lucases
View Post
Zskin variable?
new ZSkins[] = { 20002, 20003};
Reply
#4

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");
Reply
#5

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
Reply
#6

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
Reply
#7

put in your server.cfg file param useartwork 1
Reply
#8

Ty, but now how can I give a download link to all users of my custom skins? to download faster
Reply
#9

And it is possible to add custom weapons?
Reply
#10

Quote:
Originally Posted by Zeus666
View Post
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.
Reply
#11

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.
Reply
#12

use another baseid instead of CJ's skinid, and correct this one

new ZSkins[] = { 20003, 20004};
instead of
new ZSkins[] = { 20002, 20003};
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)