#10

Quote:
Originally Posted by GangsTa_
Посмотреть сообщение
View this, and you should understand, else nothing nice will result:

https://sampforum.blast.hk/showthread.php?tid=95034
That's my ver very first guide about NPC and didn't helped

Quote:
Originally Posted by Nero_3D
Посмотреть сообщение
You dont need any record for that, just connect a npc with the npcidle.pwn (which is basically empty)

pawn Код:
ConnectNPC("IDLER","npcidle");
than just do what the other told you

pawn Код:
new idler; //not needed if you only got one npc
pawn Код:
//OnPlayerConnect
    if(IsPlayerNPC(playerid)) {
        new //or any kind of counter
            name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, sizeof name);
        if(strcmp(name, "IDLER", false) == 0) {
            idler = playerid;
        }
    } else {
        //code
    }
    return true;
pawn Код:
//OnPlayerSpawn
    if(IsPlayerNPC(playerid)) {
        if(playerid == idler) {
            SetPlayerPos(playerid, 0.0, 0.0, 2.5);
        }
    } else {
        //code
    }
    return true;
And guess what? This one is works
Thanks
Reply


Messages In This Thread
NPC - by =WoR=Varth - 24.06.2011, 00:39
Re: NPC - by [MG]Dimi - 24.06.2011, 07:29
Re: NPC - by Markx - 24.06.2011, 07:43
Re: NPC - by boelie - 24.06.2011, 08:40
Re: NPC - by =WoR=Varth - 24.06.2011, 16:50
Re: NPC - by boelie - 24.06.2011, 16:52
Re: NPC - by =WoR=Varth - 24.06.2011, 16:56
Re: NPC - by GangsTa_ - 24.06.2011, 17:01
AW: NPC - by Nero_3D - 24.06.2011, 17:13
Re: AW: NPC - by =WoR=Varth - 24.06.2011, 17:28

Forum Jump:


Users browsing this thread: 5 Guest(s)