NPC Problem
#1

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;
}
Reply


Messages In This Thread
NPC Problem - by DiiP - 17.10.2011, 19:06
Re: NPC Problem - by Stigg - 17.10.2011, 19:11
Re: NPC Problem - by DiiP - 17.10.2011, 19:21
Re: NPC Problem - by Annoymous - 17.10.2011, 20:05
Re: NPC Problem - by Kostas' - 17.10.2011, 20:09
Re: NPC Problem - by Annoymous - 17.10.2011, 20:12

Forum Jump:


Users browsing this thread: 1 Guest(s)