[UNSOLVED] How do I set skins for the Npcs ?
#9

well i have this and they load the skin, maybe check urs?

Код:
public OnGameModeInit()
{

  ConnectNPC("[NPC]Juan","FarmGuard");
Код:
public OnPlayerSpawn(playerid)
{

	if(IsPlayerNPC(playerid)) //Checks if player is NPC.
    {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname)); //
    if(!strcmp(npcname, "[NPC]Juan", true)) /
    {
      GivePlayerWeapon(playerid,32,500); // M4
      SetPlayerSkin(playerid,30); // Skin Latino
      PlayerInfo[playerid][team] = CIVILIAN;
    }
  return 1;
  } // end of NPC Check

// then the rest of player spawn thing for regular players
this to avoid my real player skin things and stuff
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)