16.02.2013, 14:21
Any suggestions how to log npc bot? It disconnects after ~4-10hours after server start. It doesn't disconnect if there's no players in server.. Can't find solution for years...
public OnPlayerDisconnect(playerid, reason) {
if(IsPlayerNPC(playerid)) printf("NPC %i disconnected (reason: %i).", playerid, reason);
// proceed with normal code
return 1;
}