18.09.2010, 17:52
I have got a problem... I have got two recorded NPCs npcmodes -> recording, two compiled files in npcmodes, and this script:
My NPCs can't connect. It's added to filterscripts in server.cfg, when I open the server, they don't connect (no message). Help?
Код:
#include <a_samp> new Line_1_Vehicle; new Line_2_Vehicle; #if defined FILTERSCRIPT public OnFilterScriptInit() { print("Bots - succesfully loaded!"); ConnectNPC("Line_1","Line_1"); ConmectNPC("Line_2","Line_2"); Line_1_Vehicle = AddStaticVehicle(431, 0.0, 0.0, 5.0, 0.0, 6, 666, 5000); Line_2_Vehicle = AddStaticVehicle(431, 0.0, 0.0, 5.0, 0.0, 6, 666, 5000); return 1; ) #else main() { print("Bots - succesfully unloaded!"); } #endif public OnPlayerSpawn(playerid) { if(IsPlayerNPC(playerid)) { new npcname[MAX_PLAYER_NAME]; GetPlayerName(playerid, npcname, sizeof(npcname)); if(!strcmp(npcname, "Line_1", true)) { PutPlayerInVehicle(playerid, Line_1_Vehicle, 0); return 1; } if(!strcmp(npcname, "Line_2", true)) { PutPlayerInVehicle(playerid, Line_2_Vehicle, 0); return 1; } return 1; } return 1; } public OnPlayerRequestSpawn(playerid) { if(IsPlayerNPC(playerid)) return 1; return 1; }