30.10.2014, 19:06
Hello
ive been trying to make the npc to show smoking anim but it doesnt seems working but it set the skin id as i set it on onplayerspawn callback, how do i make the anim works
ive been trying to make the npc to show smoking anim but it doesnt seems working but it set the skin id as i set it on onplayerspawn callback, how do i make the anim works
pawn Код:
public OnPlayerSpawn(playerid)
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
if(IsPlayerNPC(playerid))
{
if(!strcmp(npcname, "Tester", true))
{
ApplyAnimation(playerid,"SMOKING","M_smklean_loop",4.1, 0, 1, 1, 1, 1, 1);
SetPlayerSkin(playerid,2);
return 1;
}
}
return 1;}