Posts: 103
Threads: 27
Joined: Jul 2011
You dont have OnPlayerSpawn info for just usual NPCs without vehicles. -.-"
My bot just stands at spawn place, but he is not recorded driving cars.
Posts: 344
Threads: 12
Joined: Sep 2010
Reputation:
0
How to add bot name like other players on tab list?
Posts: 70
Threads: 12
Joined: Sep 2011
Reputation:
0
On my server the NPC does not move around, I'm using a GM BMG
Incoming connection: 127.0.0.1:60029
[npc: join] PorteiroVIP has joined the server <0:127.0.0.1>
Incoming connection: 189.6.8.98:60263
[join] Vinicius_Smith has joined the server <1:189.6.8.98>
File Name: Conce / Vinicius_Smith.ini
Vinicius_Smith logged on the server.
However when I put in grandlarc worked perfectly
please!
Posts: 516
Threads: 153
Joined: Sep 2009
Reputation:
0
Do you load filterscript?
Posts: 277
Threads: 65
Joined: Aug 2011
Reputation:
0
yes the fliterscript loads fine.
edit- Ive got signs now of him connecting in the server log but he disconnects striaght away
Posts: 22
Threads: 10
Joined: Apr 2012
Reputation:
0
23.04.2012, 01:55
(
Last edited by cowmilker69; 23/04/2012 at 08:48 PM.
Reason: Fixed the other issue
)
i can't compile it because i get this:
C:\Users\user1\Desktop\GTA SA server\filterscripts\gl_npcs.pwn(162) : error 021: symbol already defined: "OnFilterScriptInit"
C:\Users\user1\Desktop\GTA SA server\filterscripts\gl_npcs.pwn(169) : error 021: symbol already defined: "OnFilterScriptInit"
C:\Users\user1\Desktop\GTA SA server\filterscripts\gl_npcs.pwn(176) : error 021: symbol already defined: "OnPlayerSpawn"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.
The hell? how to fix?
Posts: 695
Threads: 141
Joined: Jan 2012
Reputation:
0
My NPC are not saving to scriptfiles or recordings?
Posts: 98
Threads: 9
Joined: Jun 2011
Reputation:
0
Thx it was very useful for me
Posts: 453
Threads: 108
Joined: Jun 2012
Reputation:
0
I don't get it right what code should I put as a whole to make it work in the game mod?
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, "MyFirstNPC", true)) //Checking if the NPC's name is MyFirstNPC
{
PutPlayerInVehicle(playerid, MyFirstNPCVehicle, 0); //Putting the NPC into the vehicle we created for it.
}
return 1;
}
//Other stuff for normal players goes here!
return 1;
}
Posts: 73
Threads: 23
Joined: Jan 2011
Reputation:
0
my bot just standing at the spawn point please help i to spawn tutorial again put just standing at the spawn