animation for NPC (+ rep)
#1

Hello,i tried to add animation for NPC but the NPC just wont play it...
heres the npc.amx
Код:
#include <a_npc>
main(){}

public OnPlayerStreamIn(playerid)
{
	SendCommand("/crossarms2");
	return 1;
}
heres the onplayercommandtext
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/crossarms2", cmdtext, true) == 0) {
ApplyAnimation(playerid, "DEALER", "DEALER_IDLE", 4.0, 0, 1, 1, 1, -1); // Arms crossed 2
return 1;
}
return 1;
}
onplayerspawn

Код:
public OnPlayerSpawn(playerid)
{

	if(IsPlayerNPC(playerid))
	{
	SetPlayerSkin(playerid,113);
	SetPlayerPos(playerid,1416.1754,-6.8161,1000.9261);
	SetPlayerInterior(playerid,1);
	ApplyAnimation(playerid, "DEALER", "DEALER_IDLE", 4.0, 1, 0, 0, 0, 0);
	ApplyAnimation(playerid, "DEALER", "DEALER_IDLE", 4.0, 1, 0, 0, 0, 0);
	ApplyAnimation(playerid, "DEALER", "DEALER_IDLE", 4.0, 1, 0, 0, 0, 0);
	return 1;
	}....
anyone can see whats the problem?
thanks
Reply


Messages In This Thread
animation for NPC (+ rep) - by WardenCS - 28.02.2012, 14:09
Re: animation for NPC (+ rep) - by WardenCS - 29.02.2012, 13:35
Re: animation for NPC (+ rep) - by WardenCS - 01.03.2012, 10:55
Re: animation for NPC (+ rep) - by WardenCS - 03.03.2012, 05:55
Re: animation for NPC (+ rep) - by DeathTone - 03.03.2012, 06:36

Forum Jump:


Users browsing this thread: 1 Guest(s)