Adding bots to gtarp/larp GM
#1

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)

Reply
#2

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.
Reply
#3

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
Reply
#4

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,
Reply
#5

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);
Reply
#6

Now they're just standing at spawnpoint..
Reply
#7

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


Forum Jump:


Users browsing this thread: