25.01.2014, 20:42
How do I apply an animation to an npc with this code so far?
pawn Код:
public OnGameModeInit()
{
ConnectNPC("[BOT]BigSmoke", "npcidle");
return 1;
}
public OnPlayerConnect(playerid)
{
if(IsPlayerNPC(playerid))
{
if(!strcmp(playerName(playerid), "[BOT]BigSmoke", true))
{
SetPlayerSkin(playerid, 269);
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid, 512.8655, -17.4405, 1001.5653);
SetPlayerFacingAngle(playerid, 342.9513);
}
}
return 1;
}