/clothes CMD HELP!
#5

I had this same problem, if you want to make an NPC Spawn with a certain Skin ID, do this, it worked for me.

This is an example of one of my NPC's under 'public OnPlayerSpawn(playerid)'

Код:
public OnPlayerSpawn(playerid)
{
  if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
  {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
    if(!strcmp(npcname, "Cashier_One", true))
    {
	  SetPlayerSkin(playerid,76);
      return 1;
    }
I hope this helped!
Reply


Messages In This Thread
/clothes CMD HELP! - by NinjaChicken - 17.08.2012, 09:34
Re: /clothes CMD HELP! - by RanSEE - 17.08.2012, 09:42
Re: /clothes CMD HELP! - by NinjaChicken - 17.08.2012, 09:45
Re: /clothes CMD HELP! - by Mike_Peterson - 17.08.2012, 09:50
Re: /clothes CMD HELP! - by AdamDuerden - 17.08.2012, 09:55
Re: /clothes CMD HELP! - by AdamDuerden - 17.08.2012, 09:59
Re: /clothes CMD HELP! - by NinjaChicken - 17.08.2012, 10:02
Re: /clothes CMD HELP! - by NinjaChicken - 17.08.2012, 11:04
Re: /clothes CMD HELP! - by CROSS_Hunter - 17.08.2012, 11:17
Re: /clothes CMD HELP! - by NinjaChicken - 17.08.2012, 11:46

Forum Jump:


Users browsing this thread: 4 Guest(s)