SA-MP Forums Archive
MAke an npc attack and follow?? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: MAke an npc attack and follow?? (/showthread.php?tid=264715)



MAke an npc attack and follow?? - telefatguy88 - 27.06.2011

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


Re: MAke an npc attack and follow?? - WooTFTW - 27.06.2011

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


Re: MAke an npc attack and follow?? - telefatguy88 - 27.06.2011

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


Re: MAke an npc attack and follow?? - WooTFTW - 27.06.2011

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!


Re: MAke an npc attack and follow?? - CrazyBlob - 27.06.2011

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


Re: MAke an npc attack and follow?? - telefatguy88 - 28.06.2011

oh and how can i find out my samp ip??


Re: MAke an npc attack and follow?? - WooTFTW - 28.06.2011

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

http://www.whatsmyip.org/


Re: MAke an npc attack and follow?? - telefatguy88 - 28.06.2011

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


Re: MAke an npc attack and follow?? - telefatguy88 - 28.06.2011

but one problem where do i paste this?

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


Re: MAke an npc attack and follow?? - WooTFTW - 28.06.2011

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;
}