SA-MP Forums Archive
[FS/NPC] Los Santos PD Guard - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FS/NPC] Los Santos PD Guard (/showthread.php?tid=123492)



[FS/NPC] Los Santos PD Guard - x.X.LEGENDARIO.X.x - 26.01.2010

Los Santos Police Departament Guard [BOT]
Download
Click Here To Download

Mirrors
Accepting Mirrors .

How to install
Well is very easy to install, i will give links abobe this. First you need to extract Guard to your npcmodes > recordings. Then extract Guard.PWN and Guard.AMX to your npcmodes folder. Then open up GuardNPC filterscript and put it into your filterscripts folder. Now go into your SERVER.CFG and on the filterscripts line you will add GuardNPC and on the maxnpc line you will put a random numer. Since i only used this for a test i had to put a number 1.

Description
Hello this is my first NPC i made of the year, is just a simple script that the bot go around Los Santos PD like a real life Security person.
The Bot is on a LS PD cop car.

File
The file is on a .RAR inside of it i will show instructions again .

Video
Since i do not have a screen recorder i would like for somebody to record this to me please .


Re: [FS/NPC] Los Santos PD Guard - x.X.LEGENDARIO.X.x - 26.01.2010

Quote:
Originally Posted by xkniives
This is very nice. I will use this for my Roleplay server and I will not remove the credits, or replace your name with my name, which is Sarin, and then tell everyone I made it, and never mention your name or speak when your name comes up. Thank you.
Just kidding. My server, come if you would:
174.34.155.106:4600
hehe thnz


Re: [FS/NPC] Los Santos PD Guard - xkniives - 26.01.2010

this doesn't work. I set my NPC's to 1 and added the filterscripts, etc, etc.


Re: [FS/NPC] Los Santos PD Guard - x.X.LEGENDARIO.X.x - 26.01.2010

Quote:
Originally Posted by xkniives
this doesn't work. I set my NPC's to 1 and added the filterscripts, etc, etc.
try adding more numbers like 100 lolz or different instead of 1. i used 1 because is the first time i used an NPC


Re: [FS/NPC] Los Santos PD Guard - deathknight865 - 26.01.2010

ok this is stupid i add the thing and he joins then leaves the server why


Re: [FS/NPC] Los Santos PD Guard - Brandon_Brown - 26.01.2010

Not that bad

Nice job


Re: [FS/NPC] Los Santos PD Guard - x.X.LEGENDARIO.X.x - 26.01.2010

Quote:
Originally Posted by deathknight865
ok this is stupid i add the thing and he joins then leaves the server why
mn i do not know what is the problem bro. if he leaves try this
pawn Код:
if(IsPlayerNPC(playerid)) return 1;



Re: [FS/NPC] Los Santos PD Guard - Moglizorz. - 29.01.2010

Quote:
Originally Posted by x.X.LEGENDARIO.X.x
Quote:
Originally Posted by deathknight865
ok this is stupid i add the thing and he joins then leaves the server why
mn i do not know what is the problem bro. if he leaves try this
pawn Код:
if(IsPlayerNPC(playerid)) return 1;
Where do we put that? May I ask..


Re: [FS/NPC] Los Santos PD Guard - x.X.LEGENDARIO.X.x - 29.01.2010

replace
pawn Код:
if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
  {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
    if(!strcmp(npcname, "MyFirstNPC", true)) //Checking if the NPC's name is MyFirstNPC
    {
      PutPlayerInVehicle(playerid, MyFirstNPCVehicle, 0); //Putting the NPC into the vehicle we created for it.
    }
    return 1;
  }
with
pawn Код:
if(IsPlayerNPC(playerid)) return 1; //Checks if the player that just spawned is an NPC.
  {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
    if(!strcmp(npcname, "MyFirstNPC", true)) //Checking if the NPC's name is MyFirstNPC
    {
      PutPlayerInVehicle(playerid, MyFirstNPCVehicle, 0); //Putting the NPC into the vehicle we created for it.
    }
    return 1;
  }



Re: [FS/NPC] Los Santos PD Guard - Jard3L - 25.12.2010

Quote:
Originally Posted by deathknight865
Посмотреть сообщение
ok this is stupid i add the thing and he joins then leaves the server why
off : Maibe he dose not like your server !!! )


Is becouse your register/login .. he can't pass by it