npc fail
#1

i created an npc witout rec file, i seted skin and pos, skin has changed, but position isin't, why?
Reply
#2

post your code
Reply
#3

pawn Код:
public OnPlayerSpawn(playerid)
{
    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 );
            print( "atsspawninp" );
        }
        return true;
    }
    else if( !IsPlayerNPC( playerid ) )
    {
please help me with this, I'm stuck with this like 3 weeks
Reply
#4

its SetMyPos for NPC's there is totally different functions i think.. look on wiki
https://sampwiki.blast.hk/wiki/NPC:SetMyPos
Reply
#5

Quote:
Originally Posted by whatthefuck123
Посмотреть сообщение
its SetMyPos for NPC's there is totally different functions i think.. look on wiki
https://sampwiki.blast.hk/wiki/NPC:SetMyPos
This code isin't in NPCmode it's in gamemode, and the npc is without .rec file
Reply
#6

help please
Reply
#7

Have you tried doing an on-foot recording for the NPC at the location that you want it to stand, and then run that recording through ConnectNPC? If you do that, it will automatically teleport to the place that you were standing at during the recording, rather than you having to use SetPlayerPos.
Reply
#8

Quote:
Originally Posted by BenzoAMG
Посмотреть сообщение
Have you tried doing an on-foot recording for the NPC at the location that you want it to stand, and then run that recording through ConnectNPC? If you do that, it will automatically teleport to the place that you were standing at during the recording, rather than you having to use SetPlayerPos.
I will try it, but i need to change npc position like every hour
Reply
#9

bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)