SA-MP Forums Archive
NPC is just standing in spawn - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: NPC is just standing in spawn (/showthread.php?tid=475541)



NPC is just standing in spawn - ancezas - 13.11.2013

pawn Код:
else if( IsPlayerNPC( playerid ) )
    {
        new npcname[ MAX_PLAYER_NAME ];
        GetPlayerName( playerid, npcname, sizeof( npcname ) );
        if( !strcmp( npcname, "Sandra_Boveriene", true ) )
        {
            SetPlayerSkin( playerid, 141 );
            SetPlayerPos( playerid, 150.9816, -157.4454, 3.2859 );
        }
        return true;
    }
bot just standing in 0,0,0 cords and i need to make it SetPlayerPos( playerid, 150.9816, -157.4454, 3.2859 ); but it doesn't working


Re: NPC is just standing in spawn - Oscii - 13.11.2013

If this is your only NPC.

pawn Код:
else if( IsPlayerNPC( playerid ) )
    {
        new npcname[ MAX_PLAYER_NAME ];
        GetPlayerName( playerid, npcname, sizeof( npcname ) );
        if( !strcmp( npcname, "Sandra_Boveriene", true ) )
        {
            SetPlayerSkin(0 , 141 );
            SetPlayerPos(0 , 150.9816, -157.4454, 3.2859 );
        }
        return true;
    }
If not, let me know with a reply to this :P


Re: NPC is just standing in spawn - ancezas - 13.11.2013

Quote:
Originally Posted by Oscii
Посмотреть сообщение
If this is your only NPC.

pawn Код:
else if( IsPlayerNPC( playerid ) )
    {
        new npcname[ MAX_PLAYER_NAME ];
        GetPlayerName( playerid, npcname, sizeof( npcname ) );
        if( !strcmp( npcname, "Sandra_Boveriene", true ) )
        {
            SetPlayerSkin(0 , 141 );
            SetPlayerPos(0 , 150.9816, -157.4454, 3.2859 );
        }
        return true;
    }
If not, let me know with a reply to this :P
not only