NPC doesent move?
#1

pawn Код:
if(strcmp(cmdtext, "/mewantzpr0n", true)==0)
    {
        new name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, sizeof(name));
        if(!strcmp(name, "Rafael_Rodriguez", true) || !strcmp(name, "Pedro_Rodriguez", true))
        {
            ResetPlayerWeapons(npcid);
            SetPlayerPos(playerid, 1204.2649,16.9675,1000.9219);
            SetPlayerPos(npcid, 1202.7460,14.7477,1000.9219);
            SetPlayerInterior(npcid, 2);
            SetPlayerInterior(playerid, 2);
            SetPlayerSkin(npcid, 256);
            SendClientMessage(playerid, COLOR_WHITE, "Angelica_Winter says: So, handsome, want to do something?");
            if(!strcmp(name, "Rafael_Rodriguez", true))
            {
                SetPlayerChatBubble(npcid,"Hey Rafael, want to have some fun?\nTell me what to do.",0xFFFFFFAA,50,5000);
                barkeeperactivated = 1;
                return 1;
            }
            else if(!strcmp(name, "Pedro_Rodriguez", true))
            {
                SetPlayerChatBubble(npcid,"Hey Pedro, want to have some fun?\nTell me what to do.",0xFFFFFFAA,50,5000);
                barkeeperactivated = 1;
                return 1;
            }
        }
        return 1;
    }
It all works fine, sets the player and the message appears that angelica says, but the NPC doesent get set to the correct position, i cant see it at all. Help? I set the interiors to the correct ones.
Reply


Messages In This Thread
NPC doesent move? - by Everybody - 27.10.2011, 07:53
Re: NPC doesent move? - by [MWR]Blood - 27.10.2011, 08:26
Re: NPC doesent move? - by Everybody - 27.10.2011, 08:32

Forum Jump:


Users browsing this thread: 1 Guest(s)