Npc Bots 0.3.7 - 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)
+--- Thread: Npc Bots 0.3.7 (
/showthread.php?tid=581647)
Npc Bots 0.3.7 -
ammaz - 14.07.2015
Can anyone tell me how to add npc bots in samp 0.3.7 ?
I saw all tutorials but they are outdated
Re: Npc Bots 0.3.7 -
Crystallize - 14.07.2015
Same as the other versions....
Re: Npc Bots 0.3.7 -
Michael B - 14.07.2015
Quote:
Originally Posted by ammaz
Can anyone tell me how to add npc bots in samp 0.3.7 ?
I saw all tutorials but they are outdated 
|
Are you referring to
NPCs or
actors? NPCs were added in
0.3a version, however actors were added recently, in the
0.3.7 version and are different from NPCs.
Re: Npc Bots 0.3.7 -
ammaz - 14.07.2015
Quote:
Originally Posted by Michael B
Are you referring to NPCs or actors? NPCs were added in 0.3a version, however actors were added recently, in the 0.3.7 version and are different from NPCs.
|
I am referring to NPCs, But the main part is all codes are fine, they dont give any error but NPCs dont connect into my server. This is the exact coding I used
https://sampforum.blast.hk/showthread.php?tid=95034
Re: Npc Bots 0.3.7 -
ammaz - 14.07.2015
Please help me anyone
Re: Npc Bots 0.3.7 -
iMouiz - 14.07.2015
Quote:
Originally Posted by ammaz
Please help me anyone 
|
Use filterscripts to make nps
Re: Npc Bots 0.3.7 -
Midzi - 14.07.2015
Have you max_npc setted in server.cfg?
It can't be 0.
Re: Npc Bots 0.3.7 -
MasterReturnz - 14.07.2015
https://sampforum.blast.hk/showthread.php?tid=95034
Should work just fine.
Make sure in your server.cfg you have
max_npc set to the amount of NPCs you have.
Re: Npc Bots 0.3.7 -
ammaz - 15.07.2015
max_npc 1
Sorry i am newbie in making filterscript.
This is the code. Please tell me how to fix it
Quote:
#include <a_samp>
#include <a_npc>
#if defined FILTERSCRIPT
new crazyVehicle; //Global variable!
public OnFilterScriptInit()
{
print("Bots");
ConnectNPC("crazy","pilot");
crazyVehicle = CreateVehicle(476, 0.0, 0.0, 5.0, 0.0, 226, 1, 5000);
return 1;
}
public OnPlayerSpawn(playerid)
{
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, "crazy", true)) //Checking if the NPC's name is MyFirstNPC
{
PutPlayerInVehicle(playerid, crazyVehicle, 0); //Putting the NPC into the vehicle we created for it.
}
return 1;
}
}
#endif
|
No NPC connects into my server.
Re: Npc Bots 0.3.7 -
ammaz - 15.07.2015
Please help me guys