The server is running on Windows 2003R2.
The only extention i include is:
#include <sourcemod>
One of the things i have been noticing is tha with using this piece of code:
Code:
public Event_roundrestart(Handle:event, const String:name[], bool:dontBroadcast)
{
LogMessage("[zmupgrades] Round restart reached");
new maxplayers=GetMaxClients();
for(new player=1;player<=maxplayers;player++)
{
if(IsClientConnected(player))
{
LogMessage("Round restart: Client connected reached");
if (GetClientTeam(player) == 2)
{
LogMessage("Round restart: Client team reached");
healthBonus[player] = healthBonus[player] + 10;
}
}
}
}
I added those logmessages to have atleast an idea where the server crashes on. Anyway, the odd thing is that sometimes i still get an error at this piece of code which says:
Native "GetClientTeam" reported: Client 2 is not in game
But that shouldnt be possible because i check if the player is connected?