09.08.2010, 23:14
I think it should be like this:
pawn Код:
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "NAMEOFNPC", true))
{
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 10000); //change the animation here
}
return 1;
}
//Other stuff for normal players goes here!
return 1;
}