ZDaemon ACS Extensions - ZD_AllowPlayerRejoin

ZD_AllowPlayerRejoin() function

This function will allow a player to rejoin the game in survival if:
 - They've reached the maxlives limit
 - They died and the maxlives limit was increased
 - They used the spectate command
 
NOTES: 
 - If after this function has been executed on a player they
   disconnect, for them it'll have to be executed once more.
 - A given player's deathcount will end up higher if maxlives
   remains unchanged and they happen to die again.
 - This action will ALWAYS be logged to the general and limited
   logs.
The syntax is:
int ZD_AllowPlayerRejoin(int pl_num[, int only_log_notify])
The 'only_log_notify' parameter is optional - just in case you only want the logged
action rather than it being broadcast.

Return values:
 0 = Gametype is not survival or nothing needed to be done.
 1 = The player can now rejoin.