I have one question - why to exit their cs? Some of them may want to play in other server after match or what ever it will be.
shouldn't this
PHP Code:
if( g_iTScore || g_iCTScore == winlimit )
be
PHP Code:
if( (g_iTScore || g_iCTScore) == winlimit )
or
PHP Code:
if( g_iTScore == winlimit || g_iCTScore == winlimit )
because it checks if g_iTScore is not 0 or g_iCTScore equals to winlimit. (not sure for first variant)
Also I think that
PHP Code:
case 1:
{
g_iCTScore = read_data(2)
}
should be
PHP Code:
case 1:
{
g_iCTScore = read_data(2)
CheckScore(id)
}
Because (in my opinion, I don't really know) if CT gets all the score nothing will happen, because checking won't be called.
I suggest to change "exit" to "disconnect".