ONFOOT NPC left the server(new.pwn)
#1

LOG:
Quote:

SA-MP Dedicated Server
----------------------
v0.3c R2, ©2005-2011 SA-MP Team

[04:10:45]
[04:10:45] Server Plugins
[04:10:45] --------------
[04:10:45] Loaded 0 plugins.

[04:10:45]
[04:10:45] Ban list
[04:10:45] --------
[04:10:45] Loaded: samp.ban
[04:10:45]
[04:10:45]
[04:10:45] Filter Scripts
[04:10:45] ---------------
[04:10:45] Loading filter script 'NPCPack.amx'...
[04:10:45] Loading filter script 'NPCPack_Icons.amx'...
[04:10:45] Loaded 2 filter scripts.

[04:10:45] Incoming connection: 127.0.0.1:2155
[04:10:45] Incoming connection: 127.0.0.1:2156
[04:10:45] Incoming connection: 127.0.0.1:2157
[04:10:45] Incoming connection: 127.0.0.1:2158
[04:10:45] Incoming connection: 127.0.0.1:2159
[04:10:45] Incoming connection: 127.0.0.1:2160
[04:10:45] Incoming connection: 127.0.0.1:2161
[04:10:45] Incoming connection: 127.0.0.1:2162
[04:10:45] Incoming connection: 127.0.0.1:2163
[04:10:45] Incoming connection: 127.0.0.1:2164
[04:10:45] Incoming connection: 127.0.0.1:2165
[04:10:45] Incoming connection: 127.0.0.1:2166
[04:10:45] Incoming connection: 127.0.0.1:2167
[04:10:45] Incoming connection: 127.0.0.1:2168
[04:10:45]
----------------------------------
[04:10:45] Blank Gamemode by your name here
[04:10:45] ----------------------------------

[04:10:45] Number of vehicle models: 4
[04:10:45] [npc:join] Taxi1 has joined the server (0:127.0.0.1)
[04:10:45] [npc:join] Taxi2 has joined the server (1:127.0.0.1)
[04:10:45] [npc:join] Taxi3 has joined the server (2:127.0.0.1)
[04:10:45] [npc:join] Taxi4 has joined the server (3:127.0.0.1)
[04:10:45] [npc:join] PoliceMan has joined the server (4:127.0.0.1)
[04:10:45] [npc:join] Sweeper has joined the server (5:127.0.0.1)
[04:10:45] [npc:join] PoliceBiker has joined the server (6:127.0.0.1)
[04:10:45] [npc:join] Pilot has joined the server (7:127.0.0.1)
[04:10:45] Incoming connection: 127.0.0.1:2169
[04:10:45] Incoming connection: 127.0.0.1:2170
[04:10:59] [npcart] Taxi1 has left the server (0:0)
[04:10:59] [npcart] Sweeper has left the server (5:0)
[04:10:59] [npcart] Taxi3 has left the server (2:0)
[04:10:59] [npcart] Taxi2 has left the server (1:0)
[04:10:59] [npcart] PoliceBiker has left the server (6:0)
[04:10:59] [npcart] PoliceMan has left the server (4:0)
[04:10:59] [npcart] Taxi4 has left the server (3:0)
[04:10:59] [npcart] Pilot has left the server (7:0)

gamemode:

Quote:

// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}

public OnFilterScriptExit()
{
return 1;
}

#else

main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}

public OnGameModeExit()
{
return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}

public OnPlayerConnect(playerid)
{
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
return 1;
}

public OnPlayerSpawn(playerid)
{
return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}

public OnVehicleSpawn(vehicleid)
{
return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}

public OnPlayerText(playerid, text[])
{
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}

public OnRconCommand(cmd[])
{
return 1;
}

public OnPlayerRequestSpawn(playerid)
{
return 1;
}

public OnObjectMoved(objectid)
{
return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}

public OnPlayerExitedMenu(playerid)
{
return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}

public OnPlayerUpdate(playerid)
{
return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}

I tried for many times many different records but not works
Reply
#2

Is the record File / NPCMODE available?
Reply
#3

yes of cause and Driving NPC didnt left the server! and driving perfectly.
Quote:

SA-MP Dedicated Server
----------------------
v0.3c R2, ©2005-2011 SA-MP Team

[04:24:05]
[04:24:05] Server Plugins
[04:24:05] --------------
[04:24:05] Loading plugin: GeoIP_Plugin
[04:24:05] GeoIP_Plugin got loaded.
[04:24:05] Loaded.
[04:24:05] Loaded 1 plugins.

[04:24:05]
[04:24:05] Ban list
[04:24:05] --------
[04:24:05] Loaded: samp.ban
[04:24:05]
[04:24:05]
[04:24:05] Filter Scripts
[04:24:05] ---------------
[04:24:05] Loading filter script 'npc.amx'...
[04:24:05] Incoming connection: 127.0.0.1:2363
[04:24:05] Incoming connection: 127.0.0.1:2364
[04:24:05] Incoming connection: 127.0.0.1:2365
[04:24:05] Loaded 1 filter scripts.

[04:24:05]
----------------------------------
[04:24:05] Blank Gamemode by your name here
[04:24:05] ----------------------------------

[04:24:05] Number of vehicle models: 0
[04:24:05] Incoming connection: 127.0.0.1:2366
[04:24:05] Incoming connection: 127.0.0.1:2367
[04:24:05] [npc:join] [NPC]FishMan has joined the server (0:127.0.0.1)
[04:24:05] [npc:join] [NPC]FishMan2 has joined the server (1:127.0.0.1)
[04:24:05] [npc:join] [NPC]FishMan3 has joined the server (2:127.0.0.1)
[04:24:05] [npc:join] [NPC]Busdriver has joined the server (3:127.0.0.1)
[04:24:05] [npc:join] [NPC]CarIntro has joined the server (4:127.0.0.1)
[04:24:19] [npcart] [NPC]FishMan has left the server (0:0)
[04:24:19] [npcart] [NPC]FishMan2 has left the server (1:0)
[04:24:19] [npcart] [NPC]FishMan3 has left the server (2:0)
[04:24:28] --- Server Shutting Down.
[04:24:28] [npcart] [NPC]Busdriver has left the server (3:0)
[04:24:28] [npcart] [NPC]CarIntro has left the server (4:0)
[04:24:28] GeoIP_Plugin got unloaded.

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)