i got a problem with npc
#1

I got one problem with NPC..
My npc can join the game and log..But their skin is the same..
How can i change the skin of my npc..
I dont want them to have the same skin..
Or do i need to add the SetPlayerskin in the npc Script?
I already done that.but they got errrors.I dont know where do i put that thing..
Reply
#2

pawn Код:
if(IsPlayerNPC(playerid))
    {
        new NpcName[MAX_PLAYER_NAME];
        GetPlayerName(playerid, NpcName, MAX_PLAYER_NAME);
        //Replace NPCname with your NPC NAME
        if (strcmp("NPCname", NpcName, true, MAX_PLAYER_NAME) == 0)
        {
            //Replace with your npc skin
            SetPlayerSkin(playerid, 115);
        }
    }
Reply
#3

Do i need to replace the nPCname at
pawn Код:
new NpcName
with my npc name?
Do i need to replace all the NpcName to my npc name?
Reply
#4

Yes its done..But how can i set other npc skin?? do i need to do like that alot of times?
Lol the skin doesnt change?
Reply
#5

pawn Код:
if(IsPlayerNPC(playerid))
    {
        new Grove_Cap[MAX_PLAYER_NAME];
        GetPlayerName(playerid, Grove_Cap, MAX_PLAYER_NAME);
        //Replace NPCname with your NPC NAME
        if (strcmp("Grove_Cap", Grove_Cap, true, MAX_PLAYER_NAME) == 0)
        {
            //Replace with your npc skin
            SetPlayerSkin(playerid, 107);
        }
I did this?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)