Help Please - 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: Help Please (
/showthread.php?tid=206176)
Help Please -
Ironboy - 03.01.2011
How i can put a train and it will run automatically?
I mean automatic driver.
Is it possible to do that?
Re: Help Please -
Grah - 03.01.2011
Trainbot is included in 0.3c server. You need to activate.
Re: Help Please -
Ironboy - 03.01.2011
Included in which folder?
and how to activate it?
Re: Help Please -
Ironboy - 03.01.2011
any one please me
Re: Help Please -
Macluawn - 03.01.2011
in npc folder. read some tutorials about npc's
Re: Help Please -
Ironboy - 03.01.2011
from where?
Re: Help Please - lameguy - 03.01.2011
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.
Re: Help Please -
Ironboy - 03.01.2011
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?
Re: Help Please -
HyperZ - 03.01.2011
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'
Re: Help Please -
Ironboy - 03.01.2011
I am using LuxAdmin system if i change the filterscript then i cant use LuxAdmin system