Sourcemod just printed some stuff in my server console:
Quote:
[SM] Native "GetClientTeam" reported: Client index 0 is invalid
[SM] Displaying call stack trace:
[SM] [0] Line 293, quakesounds.sp::EventPlayerDeath()
|
Quote:
[SM] Native "PrintToChat" reported: Client 1 is not in game
[SM] Debug mode is not enabled for "quakesounds.smx"
[SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 7 on
|
The first one is easily solved if you changed the code in function
EventPlayerDeath:
Code:
if(GetClientTeam(attackerClient) == GetClientTeam(victimClient) && attackerId != victimId && GetConVarBool(cvarTK))M
soundId = TEAMKILL;M
to:
Code:
if(attackerClient != 0 && victimClient != 0 && GetClientTeam(attackerClient) == GetClientTeam(victimClient) && attackerId != victimId && GetConVarBool(cvarTK))M
soundId = TEAMKILL;M
The second one I think its better to use native function
OnClientPutInServer and disable the timer stuff.
Code:
public OnClientPutInServer(client)
{
if(GetConVarBool(cvarAnnounce))
PrintToChat(client, "Say !quake or /quake to set your quake sounds preferences");M
}
Just my research on that. I hope it helps