20.09.2009, 19:09
This is the onplayerspawn Code:
He just stands there
Код:
if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
if(!strcmp(npcname, "Dancer", true)) //Checking if the NPC's name is MyFirstNPC
{
ApplyAnimation(playerid,"DANCING","dnce_M_a",10.0,1,1,1,1,1);
}
return 1;
}

