SA-MP Forums Archive
NPC's??? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: NPC's??? (/showthread.php?tid=151378)



NPC's??? - HACKHERS - 30.05.2010

How Can I Do animation to Npc Recordin iS JUst staying on my foot.. And I Do This but it Doesnt works

#include <a_samp>

new Random;

Код:
public OnGameModeInit()
{

	// The Npc

	ConnectNPC("Hell_Riser","HgalSarpNPC");


	return 1;
}

public OnPlayerSpawn(playerid)
{
  if(!IsPlayerNPC(playerid)) return 0;
		 if(!strcmp(playername,"Hell_Riser",true)) {
    ApplyAnimation(playerid,"BEACH", "bather", 4.0, 1, 0, 0, 0, 0); // Lay down
    ApplyAnimation(playerid,"BEACH", "bather", 4.0, 1, 0, 0, 0, 0); // Lay down
		SetPlayerColor(playerid,0x33AA33AA);
	}

  return 1;
}