Public feed #892655

Master_Reload

public cpp v1 · immutable
Raw Edit
·published 2008-02-05 16:25 UTC
rendered paste body
/*----------------------------------------------------------------------------*-Function:	Master_RefreashParams:	-Return:	-Notes:	Acts as if this script is ending and restarting but maintains master	status on all scripts.-*----------------------------------------------------------------------------*/stock Master_Reload(){	if (YSI_gMasterID == -1) return 0;	new		tempMaster = YSI_gMasterID;	YSI_gMasterID = -1;	for (new i = 0; i < YSI_g_sMasterCount; i++)	{		if (YSI_g_sMasters & (1 << i))		{			CallLocalFunction(YSI_g_sMasterData[i], "i", E_MASTER_RELINQUISH | tempMaster);		}		else		{			CallRemoteFunction(YSI_g_sMasterData[i], "i", E_MASTER_RELINQUISH | tempMaster);		}	}	YSI_gMasterID = tempMaster;	return 1;}