MAke an npc attack and follow??
#1

How can i make an npc follow you and attck you??
plz send me the script
Reply
#2

i will release this soon.
https://sampforum.blast.hk/showthread.php?tid=257528
Reply
#3

GOOD!! and come to my server to check my leatherface mod out, he spawns at the cabin in the panopticon but the problem is that he cant attack yet so thats my i need it.
my server ip is: 192.168.0.109:7777
Reply
#4

Quote:
Originally Posted by telefatguy88
Посмотреть сообщение
GOOD!! and come to my server to check my leatherface mod out, he spawns at the cabin in the panopticon but the problem is that he cant attack yet so thats my i need it.
my server ip is: 192.168.0.109:7777
That's your lan ip. I can't connect to that!
Reply
#5

Quote:
Originally Posted by telefatguy88
Посмотреть сообщение
GOOD!! and come to my server to check my leatherface mod out, he spawns at the cabin in the panopticon but the problem is that he cant attack yet so thats my i need it.
my server ip is: 192.168.0.109:7777
you need your IP thats ur lan ip only you can connect to that
Reply
#6

oh and how can i find out my samp ip??
Reply
#7

i released it
https://sampforum.blast.hk/showthread.php?tid=264875

http://www.whatsmyip.org/
Reply
#8

UR JOKING!!!!!!!!!!!!!!! NICE ONE SCORTCH!!! THANK YOU!!! now i can make leatherface chase me
Reply
#9

but one problem where do i paste this?

if(strcmp("/npc", cmdtext, true, 10) == 0)
{
SetNPCFollowPlayer(50, playerid);
return 1;
}
Reply
#10

Quote:
Originally Posted by telefatguy88
Посмотреть сообщение
but one problem where do i paste this?

if(strcmp("/npc", cmdtext, true, 10) == 0)
{
SetNPCFollowPlayer(50, playerid);
return 1;
}
firstly
pawn Код:
public OnGameModeInit()
{
    ZMap_Init("SAfull.hmap");
    CreateNPC(50,"Leatherface"); // create the npc
    SetSpawnInfo(50,0,28,x,y,z, a,0,0,0,0,0,0); // set his spawn info
    SpawnNPC(50); // spawn him
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/npc", cmdtext, true, 10) == 0)
    {
        SetNPCFollowPlayer(50, playerid);
        return 1;
    }
    return 0;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)