How can i make npc that stand at the spawnpoint
#6

Код:
	if(IsPlayerNPC(playerid))
	{
	  new npcname[MAX_PLAYER_NAME];
		GetPlayerName(playerid, npcname, sizeof(npcname));
		RequestNPCLoad(playerid,npcname);
		return 1;
	}

And this the requestnpcload public:


Код:
public RequestNPCLoad(playerid,npcname[])
{
	if(IsPlayerNPC(playerid))
	{
	  if(!strcmp(npcname, "Zak", true))
	  {
//	  SetSpawnInfo(playerid,255,125,2448.1091,-1963.3397,13.5469,171.5765, 0, 0, 0, 0, 0, 0 );
    SetPlayerSkin(playerid, 127);
    SetPlayerTeam(playerid, 0);
		SetPlayerPos(playerid, 2448.1091,-1963.3397,13.5469);
		SetPlayerFacingAngle(playerid, 171.5765);
	  
		  return 1;
		}
	}
 	return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)