[HELP]NPC SKIN
#1

How do i set my npc skin.??And i need a scripter for my server
But the important thing is skin for nPC!
Reply
#2

pawn Code:
public OnPlayerSpawn(playerid)
{
    if(IsPlayerNPC(playerid)) {
        new npcname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, npcname, sizeof(npcname));
        if(!strcmp(npcname, "Bot_Name", true)) {
            SetPlayerSkin(playerid, 200); // <- The Skin here!
        }
        return 1;
    }
    //Other stuff for normal players goes here!
    return 1;
}
Reply
#3

pawn Code:
public OnPlayerSpawn(playerid)
{
    if(IsPlayerNPC(playerid))
    {
        new name[24];GetPlayerName(playerid,name,24);
        if(strcmp(name,"BOTNAME",true)!=0)
        {
            SetPlayerSkin(playerid, IDSKIN);
        }
    }
}
Too slow
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)