Help Please
#1

How i can put a train and it will run automatically?
I mean automatic driver.
Is it possible to do that?
Reply
#2

Trainbot is included in 0.3c server. You need to activate.
Reply
#3

Included in which folder?
and how to activate it?
Reply
#4

any one please me
Reply
#5

in npc folder. read some tutorials about npc's
Reply
#6

from where?
Reply
#7

Add this OnGameModeInit:
Код:
TrainLS = AddStaticVehicle(538, 1462.0, 2630.8, 10.8, 200.0, -1, -1);
TrainLV = AddStaticVehicle(538, -1942.7, 168.4, 27.0, 200.0, -1, -1);
TrainSF = AddStaticVehicle(538, 1700.7, -1953.6, 14.8, 200.0, -1, -1);
	
ConnectNPC("TrainDriverLS", "train_ls");
ConnectNPC("TrainDriverLV", "train_lv");
ConnectNPC("TrainDriverSF", "train_sf");
And this to OnPlayerConnect
Код:
public OnPlayerConnect(playerid) {
	if(IsPlayerNPC(playerid)) {
		new Name[MAX_PLAYER_NAME];
		GetPlayerName(playerid, Name, sizeof(Name));

		if(!strcmp(Name, "TrainDriverLS", false)) {
  			PutPlayerInVehicle(playerid, TrainLS, 0);
		}
			if(!strcmp(Name, "TrainDriverLV", false)) {
	    		PutPlayerInVehicle(playerid, TrainLV, 0);
		}
	    	if(!strcmp(Name, "TrainDriverSF", false)) {
	    		PutPlayerInVehicle(playerid, TrainSF, 0);
		}
	}	
	return 1;
}
It will add 3 trains running automatically.
Reply
#8

pawn Код:
C:\Documents and Settings\blackbot\Desktop\Windows server\gamemodes\Paradise_City.pwn(86) : error 017: undefined symbol "TrainLS"
C:\Documents and Settings\blackbot\Desktop\Windows server\gamemodes\Paradise_City.pwn(89) : error 017: undefined symbol "TrainLV"
C:\Documents and Settings\blackbot\Desktop\Windows server\gamemodes\Paradise_City.pwn(92) : error 017: undefined symbol "TrainSF"
C:\Documents and Settings\blackbot\Desktop\Windows server\gamemodes\Paradise_City.pwn(170) : error 017: undefined symbol "TrainLS"
C:\Documents and Settings\blackbot\Desktop\Windows server\gamemodes\Paradise_City.pwn(171) : error 017: undefined symbol "TrainLV"
C:\Documents and Settings\blackbot\Desktop\Windows server\gamemodes\Paradise_City.pwn(172) : error 017: undefined symbol "TrainSF"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


6 Errors.
how to fix it?
Reply
#9

Its included in 0.3c server Package download it from Direct Link and open your server.cfg and put this 'gl_npcs' like this 'filterscripts gl_npcs' and change 'maxnpc 0' to 'maxnpc 10'
Reply
#10

I am using LuxAdmin system if i change the filterscript then i cant use LuxAdmin system
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)