28.02.2012, 14:09
Hello,i tried to add animation for NPC but the NPC just wont play it...
heres the npc.amx
heres the onplayercommandtext
onplayerspawn
anyone can see whats the problem?
thanks
heres the npc.amx
Код:
#include <a_npc> main(){} public OnPlayerStreamIn(playerid) { SendCommand("/crossarms2"); return 1; }
Код:
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; }
Код:
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; }....
thanks