SA-MP Forums Archive
Adding bots to gtarp/larp GM - 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: Adding bots to gtarp/larp GM (/showthread.php?tid=132727)



Adding bots to gtarp/larp GM - SaW_[VrTx] - 09.03.2010

Is this possible to add bots in THIS GM? Cus it requires to register, login, fill dats and so so.. Save stats also..

Quote:

[13:23:57] Incoming connection: 127.0.0.1:41688
[13:23:57] [npc:join] Vago1 has joined the server (5:127.0.0.1)
[13:23:57] Incoming connection: 127.0.0.1:51738
[13:23:57] [npc:join] Vago2 has joined the server (6:127.0.0.1)
[13:23:57] Incoming connection: 127.0.0.1:52058
[13:23:57] [npc:join] Vago3 has joined the server (7:127.0.0.1)
[13:23:57] Incoming connection: 127.0.0.1:60213
[13:23:57] [npc:join] Vago4 has joined the server (8:127.0.0.1)
[13:23:57] Incoming connection: 127.0.0.1:57214
[13:23:57] [npc:join] Vago5 has joined the server (9:127.0.0.1)
[13:23:59] [npcart] Vago1 has left the server (5:2)
[13:23:59] [npcart] Vago2 has left the server (6:2)
[13:23:59] [npcart] Vago3 has left the server (7:2)
[13:23:59] [npcart] Vago4 has left the server (8:2)
[13:23:59] [npcart] Vago5 has left the server (9:2)




Re: Adding bots to gtarp/larp GM - Torran - 09.03.2010

Well yes it is,

Create a user file with the NPC name,
And then when a npc connects,
Make the NPC send a command logging in.


Re: Adding bots to gtarp/larp GM - aircombat - 09.03.2010

well there is a function i dont remember it was like : If(IsPlayerNpc) or something which u put onplayerconnect(or register script) and add a return one which let him evade the register
________
Kitchen Measures


Re: Adding bots to gtarp/larp GM - Torran - 09.03.2010

Quote:
Originally Posted by [AC
Etch ]
well there is a function i dont remember it was like : If(IsPlayerNpc) or something which u put onplayerconnect(or register script) and add a return one which let him evade the register
Or that XD,


Re: Adding bots to gtarp/larp GM - Carlton - 09.03.2010

In LA-RP and GTA-RP, players get kicked right after they join if they don't have a RP name. Vago1 or Vago2 etc.. is not a roleplay name, change their name, then on OnPlayerRequestClass, add this:

Код:
if(IsPlayerNPC(playerid)) return SpawnPlayer(playerid);



Re: Adding bots to gtarp/larp GM - SaW_[VrTx] - 09.03.2010

Now they're just standing at spawnpoint..



Re: Adding bots to gtarp/larp GM - SaW_[VrTx] - 09.03.2010

Filterscript - FS - http://pawno.pastebin.com/faByVLGF