SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Tutorials

Reply
 
Thread Tools Display Modes
Old 06/09/2009, 10:16 AM   #111
FUNExtreme
Gangsta
 
Join Date: Mar 2008
Posts: 790
Reputation: 128
Default Re: Tutorial -> Creating a new NPC

Quote:
Originally Posted by Cedimedi
did you added this:

pawn Code:
#define RECORDING_TYPE 2 //1 for in vehicle and 2 for on foot.
?

and can anyone help me please
I fixed it. kc will update his topic soon
__________________

FUNExtreme is offline   Reply With Quote
Old 06/09/2009, 10:39 AM   #112
Maniek
Big Clucker
 
Maniek's Avatar
 
Join Date: Apr 2007
Posts: 192
Reputation: 2
Default Re: Tutorial -> Creating a new NPC

I heve question:
Why bot work only if are in FS... ?
When i add bots in GM don't work :/
Maniek is offline   Reply With Quote
Old 06/09/2009, 11:00 AM   #113
_Ben_[Fux-c.co.il RP]
Big Clucker
 
Join Date: Aug 2009
Posts: 78
Reputation: 5
Default Re: Tutorial -> Creating a new NPC

I have 3 NPCs on my mode.

I had 2 NPCs, and then I create more one.
After I create the 3 The last NPCs (2, 3) Start bugged.

Sometimes they teleport to NPC number 1, and sometimes just standing.

All npcs I did they will drive in vehicle.
At the start, all npcs start driving , and then after 20 secondes they got bugged.

Thank you for help

Sorry for my bad english.

_Ben_[Fux-c.co.il RP] is offline   Reply With Quote
Old 06/09/2009, 11:03 AM   #114
McSquizzy
Little Clucker
 
Join Date: Nov 2007
Posts: 41
Reputation: 0
Default Re: Tutorial -> Creating a new NPC

I'm using 2 standard NPC's. LV Pilot and LV Train Driver. LV Train Driver working normally, but LV Pilot doesn't fly. LV Pilot spawns at last vehicle in my script and just standing there... Also, it goes there not at the start of the script, it goes there in about 1 minutes after gamemode starts.

Best Regrads, McSquizzy.
McSquizzy is offline   Reply With Quote
Old 06/09/2009, 11:20 AM   #115
_Ben_[Fux-c.co.il RP]
Big Clucker
 
Join Date: Aug 2009
Posts: 78
Reputation: 5
Default Re: Tutorial -> Creating a new NPC

Quote:
Originally Posted by McSquizzy
I'm using 2 standard NPC's. LV Pilot and LV Train Driver. LV Train Driver working normally, but LV Pilot doesn't fly. LV Pilot spawns at last vehicle in my script and just standing there... Also, it goes there not at the start of the script, it goes there in about 1 minutes after gamemode starts.

Best Regrads, McSquizzy.

That was happen to me too.



Try to use the pilot Samp team made.


_Ben_[Fux-c.co.il RP] is offline   Reply With Quote
Old 06/09/2009, 11:54 AM   #116
McSquizzy
Little Clucker
 
Join Date: Nov 2007
Posts: 41
Reputation: 0
Default Re: Tutorial -> Creating a new NPC

Quote:
Originally Posted by _Ben_[Fux-c.co.il RP
]
Quote:
Originally Posted by McSquizzy
I'm using 2 standard NPC's. LV Pilot and LV Train Driver. LV Train Driver working normally, but LV Pilot doesn't fly. LV Pilot spawns at last vehicle in my script and just standing there... Also, it goes there not at the start of the script, it goes there in about 1 minutes after gamemode starts.

Best Regrads, McSquizzy.
That was happen to me too.

Try to use the pilot Samp team made.
I'm using it. Also, I noticed that after 3-5 minutes that bot got kicked...
McSquizzy is offline   Reply With Quote
Old 06/09/2009, 12:02 PM   #117
_Ben_[Fux-c.co.il RP]
Big Clucker
 
Join Date: Aug 2009
Posts: 78
Reputation: 5
Default Re: Tutorial -> Creating a new NPC

Quote:
Originally Posted by McSquizzy
Quote:
Originally Posted by _Ben_[Fux-c.co.il RP
]
Quote:
Originally Posted by McSquizzy
I'm using 2 standard NPC's. LV Pilot and LV Train Driver. LV Train Driver working normally, but LV Pilot doesn't fly. LV Pilot spawns at last vehicle in my script and just standing there... Also, it goes there not at the start of the script, it goes there in about 1 minutes after gamemode starts.

Best Regrads, McSquizzy.
That was happen to me too.
Try to use the pilot Samp team made.
I'm using it. Also, I noticed that after 3-5 minutes that bot got kicked...
Teleport to the Bot with admin command (/goto), and then if he got kicked, its offcourse something do that from your mode.


I am right, you have Anti-AFK ?
_Ben_[Fux-c.co.il RP] is offline   Reply With Quote
Old 06/09/2009, 01:38 PM   #118
amrour
Little Clucker
 
Join Date: May 2008
Posts: 47
Reputation: 0
Default Re: Tutorial -> Creating a new NPC

Quote:
Originally Posted by kc
ok, I see 2 problems with that.

change...

pawn Code:
if(!strcmp("MyFirstNPC", "NPC_Lenny", true)) //Checking if the NPC's name is MyFirstNPC
 {
 PutPlayerInVehicle(0, MyFirstNPCVehicle, 0); //Putting the NPC into the vehicle we created for it.
 }

to


pawn Code:
if(!strcmp(npcname, "NPC_Lenny", true)) //Checking if the NPC's name is MyFirstNPC
 {
 PutPlayerInVehicle(playerid, MyFirstNPCVehicle, 0); //Putting the NPC into the vehicle we created for it.
 }
that didn't help :/
amrour is offline   Reply With Quote
Old 06/09/2009, 01:49 PM   #119
kc
Gangsta
 
kc's Avatar
 
Join Date: Aug 2007
Posts: 618
Reputation: 115
Default Re: Tutorial -> Creating a new NPC

I have updated the tutorial to be more compatible with on foot NPCS.

Thanks to FUNExtreme for pointing it out.
kc is offline   Reply With Quote
Old 06/09/2009, 10:09 PM   #120
Memoryz
Gangsta
 
Join Date: Dec 2008
Posts: 724
Reputation: 26
Default Re: Tutorial -> Creating a new NPC

Thanks for this, it helped me make my NPC pack.
Memoryz is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
need help with NPC creating the_zande Help Archive 2 09/07/2010 11:44 PM
help creating a new gm Lookin Help Archive 8 16/06/2010 03:23 PM
I need a tut on creating kujox32 Help Archive 0 05/05/2010 02:16 AM
Creating Box VirSpectorX Help Archive 5 15/04/2010 02:47 PM
Help creating my own... x.X.LEGENDARIO.X.x Everything and Nothing 20 06/02/2010 03:40 PM


All times are GMT. The time now is 05:58 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.