PDA

View Full Version : [NPC] Ultimate *LS* RP NPC Pack


V1ceC1ty
04/09/2009, 04:14 PM
Ultimate Los Santos RolePlay NPC Pack

(-----------------------------------)
( __ ___ ___ _ _ )
( \ \ / / |__ ___ / __/ | |_ _ _ )
( \ V /| / _/ -_) (__| | _| || | )
( \_/ |_\__\___|\___|_|\__|\_, | )
( |__/ )
( [NPC] Made By V1ceC1ty )
( )
( Credits To: )
( All The SA-MP Team )
( wiki.sa-mp.com )
(-----------------------------------)


What is it?
The Ultimate RolePlay NPC Pack comes with 8 Bots including: Security Policeman, SA Pilot, 4 Taxi's, Police Biker and 1 Sweeper. The File includes the .rec files, the NPCModes and the .pwn and .amx of 2 FilterScripts. The 2 FilterScripts do different things. "NPCPack" Comes with the same features as stated and as the other FS "NPCPack_Icons" Which includes the Coloured Map Icons while the other has NO Map Icons. All cars/bikes drive round a loop of the area you can see in the Screen Shot below, The Pilot flys around the Whole of SA visiting airports one by one and the Policeman stands in the Police Dept parking booth for extra detail (see below).

How to use
Each folder has a either a .pwn and .amx or a .rec file which need to be placed into the correct folders where your SA-MP 0.3 Server is located. IT WILL NOT WORK IF NOT DONE CORRECTLY!
Once completed this, "NPCPack" or "NPCPack_Icons" (without quotes) needs to be placed into the server.cfg filterscripts line.
Join your server and watch the NPC's Drive round how they would on SinglePlayer.

Location
Key:
Red Icon - Pilot(Not Featured in ScreenShot)
Blue Icon - Security Policeman
Light Blue Icon - Police Biker
Green Icon - Sweeper
Yellow Icons - Taxi's

http://i385.photobucket.com/albums/oo291/V1ceC1ty/Icons.png

http://i385.photobucket.com/albums/oo291/V1ceC1ty/Policeman.png

Download
http://solidfiles.com/info_imgs/XFxZ.jpg (http://solidfiles.com/d/XFxZ)

Oi!
04/09/2009, 04:16 PM
Sweet as man good job.

V1ceC1ty
04/09/2009, 04:18 PM
took me quite abit of time but looks really good, i drove to the speed a normal Ped would, kept to the right side of the road, plane doesnt tilt i used Q + E to turn so you cant fall off. 8) Thanks

_Ben_[Fux-c.co.il RP]
04/09/2009, 04:21 PM
This realy nice..

But its not working on my server..

I did it, I add to filterscripts lines the names.
I put the NPC in there folder..


And what? nothing...
I am joining the server at ID 12.. And nobody else on server

V1ceC1ty
04/09/2009, 04:25 PM
make sure the .rec files are in /npcmodes/recordings/

make sure all filterscripts are in the filterscript folder.

make sure all npcmodes are in the npcmodes folder.

make sure there is no server password.

make sure there is no registration before spawning script.

make sure you have the right client/server.

this does work 100%

Oi!
04/09/2009, 04:28 PM
Is there anyway for it to load them if there is a registration cause yeah I'm using a GF edt.

V1ceC1ty
04/09/2009, 04:32 PM
get them to sendcommand /register whatever then with a timer /login whatever might work?

ded
04/09/2009, 04:34 PM
Is there anyway for it to load them if there is a registration cause yeah I'm using a GF edt.


Under OnPlayerConnect

if(IsPlayerNPC) {
PlayerInfo[playerid][Logged] =1;
PlayerInfo[playerid][Registered] =1;
}

Something like that, whatever it is in GF. Basically just fool the script into thinking the bots are registered and logged in. Works fine for me and my GM.

Daem
04/09/2009, 04:50 PM
NICE!!!

Oi!
04/09/2009, 05:13 PM
Okay I get this error

error 076: syntax error in the expression, or invalid function call

On this line

if(IsPlayerNPC)

V1ceC1ty
04/09/2009, 05:16 PM
make sure you have the right client/server.

Oi!
04/09/2009, 05:19 PM
Okay I fixed the code but now this happens:

[10:18:22] [npc:join] Taxi1 has joined the server (0:127.0.0.1)
[10:18:22] [npc:join] Taxi2 has joined the server (1:127.0.0.1)
[10:18:22] [npc:join] Taxi3 has joined the server (2:127.0.0.1)
[10:18:22] [npc:join] Taxi4 has joined the server (3:127.0.0.1)
[10:18:22] [npc:join] PoliceMan has joined the server (4:127.0.0.1)
[10:18:22] [npc:join] Sweeper has joined the server (5:127.0.0.1)
[10:18:22] [npc:join] PoliceBiker has joined the server (6:127.0.0.1)
[10:18:22] [npc:join] Pilot has joined the server (7:127.0.0.1)
[10:18:24] [npc:part] Taxi1 has left the server (0:2)
[10:18:24] [npc:part] Taxi2 has left the server (1:2)
[10:18:24] [npc:part] Taxi3 has left the server (2:2)
[10:18:24] [npc:part] Taxi4 has left the server (3:2)
[10:18:24] [npc:part] PoliceMan has left the server (4:2)
[10:18:24] [npc:part] Sweeper has left the server (5:2)
[10:18:24] [npc:part] PoliceBiker has left the server (6:2)
[10:18:24] [npc:part] Pilot has left the server (7:2)

V1ceC1ty
04/09/2009, 05:22 PM
hummm, something in another script making them disconnect?

EDIT:
(0:2)
i sure that the 2 means their being kicked

Oi!
04/09/2009, 05:25 PM
Nah I got it, but their all bugged and also it says only 8 people can login now.

V1ceC1ty
04/09/2009, 05:27 PM
yes bots take each 1 slot in the server so a 16 slot server = looks like 8, 500 slot = looks like 492 ect ect.

In what way are they bugged?

XtremeChio
04/09/2009, 05:28 PM
Nah I got it, but their all bugged and also it says only 8 people can login now.


Ofcourse, could you read the stuff about 0.3 before pointing out useless stuff.

Good job ViceCity.

ded
04/09/2009, 06:13 PM
Okay I get this error

error 076: syntax error in the expression, or invalid function call

On this line

if(IsPlayerNPC)



Should be IsPlayerNPC(playerid)

My bad.

V1ceC1ty
05/09/2009, 02:58 AM
Ill make some more NPC's like this but in different City's and different towns :P

Memoryz
05/09/2009, 03:10 AM
Make some in San Fierro, i have been trying, but failed miserably.

Qeux
05/09/2009, 03:30 AM
do npc's make the max slot go down or just take up a slot like if there are 8 npc's connected it looks like there are 8/16 on?

JaTochNietDan
05/09/2009, 03:32 AM
do npc's make the max slot go down or just take up a slot like if there are 8 npc's connected it looks like there are 8/16 on?

It takes down the max slots, so if you have 3 NPC's with 16 maxplayers, you will now have 13 maxplayers.

Josh!
05/09/2009, 05:40 AM
Thanks for this, it's nice.

GforceNL
05/09/2009, 07:48 AM
omfg Very Very Nice :D

V1ceC1ty
05/09/2009, 08:29 AM
Make some in San Fierro, i have been trying, but failed miserably.



where abouts in SF? i was thinking near wang garage and around that construction site? i dont really play RP servers so i dont know where all the main buildings/events would occur.

[LSF]bence93
05/09/2009, 09:52 AM
Where is the .rec file? I can't use filterscript :S
Please help me!

V1ceC1ty
05/09/2009, 10:32 AM
the .rec files are in the file named recordings

TheDanzar
06/09/2009, 04:32 AM
Not bad, I like it. ;)

V1ceC1ty
07/09/2009, 07:26 AM
are there anymore places RP servers revolve around besides lv, sf and ls?

Gappy
07/09/2009, 07:35 AM
Do some vehicles driving around blueberry, dillimore and all them towns.

Abernethy
07/09/2009, 07:40 AM
Video pl0x?
I can't even run this shit on my server. With any script, i just crash when I connect to my "private" samp 0.3 server.

V1ceC1ty
07/09/2009, 08:01 AM
I can't even run this shit on my server. With any script, i just crash when I connect to my "private" samp 0.3 server.


if i made a video it would be very long.
its not shit either you just know shit all about 0.3.

SergiKirov
07/09/2009, 01:06 PM
wonderful indeed

Al_Catraz
28/10/2009, 03:00 PM
nice NPC!, but somehow i managed myself to get error when installing the NPC :o

I've configured the server.cfg corretly, the filterscripts, maxnpc, etc, etc. i also have put the npcmodes, recording, etc folders n files in the right place. i also use the same 0.3 version both server client.

And then i run the server:

and got some warning
EnableTirePopping() function is removed.
Warning: EnableZoneNames() is removed since 0.3

next
i see several incoming connections
[npc:join] bla bla bla


Next run the game:

And it keeps Restarting - Restarting - Restarting - Restarting
any help?

CameronF91
04/12/2009, 05:14 PM
Open the .pwn file of your script and search up

EnableTirePopping() - then delete this line and any others revolving this.
EnableZoneNames() - do the same with this.

Then it should work.

robert4049
09/01/2010, 04:57 AM
i loaded everything just the cars load etc. just they dont move any help?

Fedee!
09/01/2010, 08:56 AM
i loaded everything just the cars load etc. just they dont move any help?


Mines doesnt connect :'(

robert4049
10/01/2010, 05:06 AM
bump ;)

V1ceC1ty
10/01/2010, 05:26 AM
:l put the .rec files in /npcmodes/recordings/ and set maxnpcs to a higher number in your server.cfg.

Fedee!
10/01/2010, 08:46 AM
:l put the .rec files in /npcmodes/recordings/ and set maxnpcs to a higher number in your server.cfg.


Did it, I putted 100 max npc, put the *.recs in the folder, but now what happends is this:
[06:44:33] Incoming connection: 127.0.0.1:1257
[06:44:33] [npc:join] PoliceMan has joined the server (0:127.0.0.1)
[06:44:33] Incoming connection: 127.0.0.1:1254
[06:44:33] [npc:join] Taxi1 has joined the server (5:127.0.0.1)
[06:44:33] Incoming connection: 127.0.0.1:1260
[06:44:33] [npc:join] Pilot has joined the server (7:127.0.0.1)
[06:44:33] Incoming connection: 127.0.0.1:1256
[06:44:33] [npc:join] Taxi3 has joined the server (1:127.0.0.1)
[06:44:33] Incoming connection: 127.0.0.1:1258
[06:44:33] [npc:join] Sweeper has joined the server (2:127.0.0.1)
[06:44:33] Incoming connection: 127.0.0.1:1255
[06:44:33] [npc:join] Taxi4 has joined the server (3:127.0.0.1)
[06:44:33] Incoming connection: 127.0.0.1:1259
[06:44:33] [npc:join] PoliceBiker has joined the server (4:127.0.0.1)
[06:44:33] Incoming connection: 127.0.0.1:1253
[06:44:33] [npc:join] Taxi2 has joined the server (6:127.0.0.1)
[06:44:44] [npc:part] Taxi1 has left the server (5:0)
[06:44:45] [npc:part] Taxi3 has left the server (1:0)
[06:44:45] [npc:part] Taxi4 has left the server (3:0)
[06:44:45] [npc:part] Taxi2 has left the server (6:0)
[06:44:45] [npc:part] Pilot has left the server (7:0)
[06:44:45] [npc:part] PoliceBiker has left the server (4:0)
[06:44:46] [npc:part] Sweeper has left the server (2:0)


I tried to run in a free-filterscript server (only bots in FS), and happend the same :s Any ideas?

robert4049
10/01/2010, 06:34 PM
i did and i stuck the fses in the server.cfg

robert4049
10/01/2010, 11:41 PM
Did it, I putted 100 max npc, put the *.recs in the folder, but now what happends is this:
[quote][06:44:33] Incoming connection: 127.0.0.1:1257
[06:44:33] [npc:join] PoliceMan has joined the server (0:127.0.0.1)
[06:44:33] Incoming connection: 127.0.0.1:1254
[06:44:33] [npc:join] Taxi1 has joined the server (5:127.0.0.1)
[06:44:33] Incoming connection: 127.0.0.1:1260
[06:44:33] [npc:join] Pilot has joined the server (7:127.0.0.1)
[06:44:33] Incoming connection: 127.0.0.1:1256
[06:44:33] [npc:join] Taxi3 has joined the server (1:127.0.0.1)
[06:44:33] Incoming connection: 127.0.0.1:1258
[06:44:33] [npc:join] Sweeper has joined the server (2:127.0.0.1)
[06:44:33] Incoming connection: 127.0.0.1:1255
[06:44:33] [npc:join] Taxi4 has joined the server (3:127.0.0.1)
[06:44:33] Incoming connection: 127.0.0.1:1259
[06:44:33] [npc:join] PoliceBiker has joined the server (4:127.0.0.1)
[06:44:33] Incoming connection: 127.0.0.1:1253
[06:44:33] [npc:join] Taxi2 has joined the server (6:127.0.0.1)
[06:44:44] [npc:part] Taxi1 has left the server (5:0)
[06:44:45] [npc:part] Taxi3 has left the server (1:0)
[06:44:45] [npc:part] Taxi4 has left the server (3:0)
[06:44:45] [npc:part] Taxi2 has left the server (6:0)
[06:44:45] [npc:part] Pilot has left the server (7:0)
[06:44:45] [npc:part] PoliceBiker has left the server (4:0)
[06:44:46] [npc:part] Sweeper has left the server (2:0)


mine does the same

robert4049
12/01/2010, 01:04 AM
bump

robert4049
12/01/2010, 02:29 AM
how would i make this work with registration?

V1ceC1ty
12/01/2010, 03:35 PM
Please stop spamming. http://forum.sa-mp.com/index.php?topic=119947.0

ViruZZzZ_ChiLLL
23/01/2010, 08:57 PM
Nice, nice! :)
________
Honda cn250 specifications (http://www.honda-wiki.org/wiki/Honda_CN250)

matthew32112
21/02/2010, 11:29 PM
do these work with rp servers ?

CJ101
21/02/2010, 11:41 PM
do these work with rp servers ?


NPC's work on all types of servers. 8)

kingforyou
11/03/2010, 10:35 PM
When i enter the server i dont see them moving i seee the sweeper parking at the LSPD station without the bot
and its takes slots from the server.... what the problem?

ohh and i did the thing that the bot dont have to register
i put the recordings folder in my server folder where there is samp-server.exe
that i can host the server
+ i put there npcmodes too
and in the server.cfs i put npcmax 20 and in there i put in the filterscript
filterscripts NPCPack_Icons

Everything good untill here because
its doesnt work like i said before(up there^^^)

kingforyou
12/03/2010, 11:14 AM
^^^^^^^^^^^^????

mojo129
04/04/2010, 02:21 PM
help!!! me Please

[21:13:02] [npc:join] Taxi3 has joined the server (0:127.0.0.1)
[21:13:02] [npc:part] Taxi3 has left the server (0:2)
[21:13:02] Incoming connection: 127.0.0.1:55886
[21:13:02] [npc:join] Taxi2 has joined the server (1:127.0.0.1)
[21:13:02] [npc:part] Taxi2 has left the server (1:2)
[21:13:02] Incoming connection: 127.0.0.1:55887
[21:13:02] [npc:join] Taxi1 has joined the server (2:127.0.0.1)
[21:13:02] [npc:part] Taxi1 has left the server (2:2)
[21:13:02] Incoming connection: 127.0.0.1:55890
[21:13:02] [npc:join] PoliceBiker has joined the server (3:127.0.0.1)
[21:13:02] [npc:part] PoliceBiker has left the server (3:2)
[21:13:02] Incoming connection: 127.0.0.1:53458
[21:13:02] [npc:join] Sweeper has joined the server (4:127.0.0.1)
[21:13:02] [npc:part] Sweeper has left the server (4:2)
[21:13:02] Incoming connection: 127.0.0.1:53457
[21:13:02] [npc:join] PoliceMan has joined the server (5:127.0.0.1)
[21:13:02] [npc:part] PoliceMan has left the server (5:2)
[21:13:02] Incoming connection: 127.0.0.1:53459
[21:13:02] [npc:join] Pilot has joined the server (6:127.0.0.1)
[21:13:02] [npc:part] Pilot has left the server (6:2)
[21:13:03] Incoming connection: 127.0.0.1:55889
[21:13:03] [npc:join] Taxi4 has joined the server (6:127.0.0.1)
[21:13:03] [npc:part] Taxi4 has left the server (6:2)

gatro
17/05/2010, 01:18 AM
where the link? :mrgreen:

mouradde48
20/12/2010, 02:25 PM
You Roock Man ...
Thanks For Sharing :)

Abraham2nds
23/12/2010, 03:57 PM
For those who bots are leaving the server i did this in order to fix it:
REPLACE
#define RECORDING "sweeper"
#define RECORDING_TYPE 1 //1 for in vehicle and 2 for on foot.

#include <a_npc>
main(){}
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCExitVehicle() StopRecordingPlayback();

WITH
#define RECORDING "RPTaxi"
#define RECORDING_TYPE 1 //1 for in vehicle and 2 for on foot.

#include <a_npc>

main(){}
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);

#if RECORDING_TYPE == 1
public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCExitVehicle() StopRecordingPlayback(); //quando esce si ferma
#else
public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
#endif

These file are found in Yourserver/npcmodes

[K]e[N]
08/05/2011, 04:09 PM
how to make your npc can login my sever ?

ryuqe7878
05/07/2012, 06:08 PM
You have to put the playerid
if(IsPlayerNPC(playerid))

[MM]18240[FMB]
10/07/2012, 05:41 PM
/me gives CPR to this topic, thus reviving it.

Download link?

V1ceC1ty
29/07/2012, 07:07 AM
Sorry these NPC's were made before a certain update which makes them useless now, I don't have the time anymore to make them all again.

Manudoma
05/05/2013, 10:08 AM
Where can I dowload it??

IceCube!
05/05/2013, 10:11 AM
Read the comment Vice left above yours about 20 years ago.

OshimaYoan
22/06/2013, 10:59 AM
Cool!!
Thanks man!