NPC is just standing in spawn
#1

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
Reply
#2

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
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)