17.10.2011, 19:06
Hello. I've created a NPC with a recordings and all, but it doesn't set his player pos / facing angel, here's the code :
pawn Код:
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "ArmsDealer", true))
{
SetPlayerSkin(playerid , 28);
print("Setted Player Skin");
SetPlayerPos(playerid,1992.9584,-1579.6434,13.6046);
print("Setted Player Pos");
SetPlayerFacingAngle( playerid, 93.5994 );
print("Setted Player Facing Angle");
}
}
return 1;
}