NPC-s
#10

*sorry for duble post*

okay, everything works but, the facing angle isnt correct, so i tryd to set it but no effect, also the anim isnt working...everything gets printed but still...

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(IsPlayerNPC(playerid))
    {
        new npcname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, npcname, sizeof(npcname));
        if(!strcmp(npcname, "Dave", true))
        {
            SetPlayerSkin(playerid, 179);
            print("Skin done");
            SetPlayerFacingAngle(playerid, 269.7591);
            print("Facing angle done");
            ApplyAnimation(playerid,"COP_AMBIENT","Coplook_loop",4.1,0,0,0,1,0);
            print("Anim done");
            Dave[playerid] = Create3DTextLabel("Dave", 0x00FF0000, 30.0, 40.0, 50.0, 40.0, 0);
            Attach3DTextLabelToPlayer(Dave[playerid], playerid, 0.0, 0.0, 0.2);
            print("3D text done");
            return true;
        }
        return 1;
    }
    SetPlayerPos(playerid, 315.55523682,2059.98608398, 27);
    return true;
}
Reply


Messages In This Thread
NPC-s - by Markx - 17.06.2011, 12:32
Re: NPC-s - by Stigg - 17.06.2011, 12:35
Re: NPC-s - by Markx - 17.06.2011, 12:41
Re: NPC-s - by Stigg - 17.06.2011, 13:15
Re: NPC-s - by Markx - 17.06.2011, 13:19
Re: NPC-s - by Stigg - 17.06.2011, 13:28
Re: NPC-s - by Markx - 17.06.2011, 13:31
Re: NPC-s - by Stigg - 17.06.2011, 13:52
Re: NPC-s - by Markx - 17.06.2011, 13:52
Re: NPC-s - by Markx - 17.06.2011, 14:41

Forum Jump:


Users browsing this thread: 3 Guest(s)