Пользователь
- Сообщения
- 86
- Реакции
- 2
Hi. Can anyone help me with a pause plugin like the one on FASTCUP or like the one on CSGO ( FACEIT ) ? For example, 2 pauses per team of 1 minute each and possibly a team vote.
Already test it. It doesn't have /unpause function...
stock SetRoundTime(iTime)
{
static iMsgRoundTime;
if(iMsgRoundTime || (iMsgRoundTime = get_user_msgid("RoundTime")))
{
if(get_gamerules_int("CGameRules","m_bFreezePeriod"))
{
set_gamerules_int("CHalfLifeMultiplay","m_iIntroRoundTime",iTime);
set_gamerules_float("CHalfLifeMultiplay","m_fIntroRoundCount",get_gametime());
}
else
{
set_gamerules_int("CHalfLifeMultiplay","m_iRoundTimeSecs",iTime);
set_gamerules_float("CHalfLifeMultiplay","m_fRoundCount",get_gametime());
}
message_begin(MSG_ALL,iMsgRoundTime);
write_short(iTime);
message_end();
}
}
I've forgot to mention that I'm using rehlds. ?!this will likely not work with rehlds though (courtesy of smiley from alliedmods)Код:stock SetRoundTime(iTime) { static iMsgRoundTime; if(iMsgRoundTime || (iMsgRoundTime = get_user_msgid("RoundTime"))) { if(get_gamerules_int("CGameRules","m_bFreezePeriod")) { set_gamerules_int("CHalfLifeMultiplay","m_iIntroRoundTime",iTime); set_gamerules_float("CHalfLifeMultiplay","m_fIntroRoundCount",get_gametime()); } else { set_gamerules_int("CHalfLifeMultiplay","m_iRoundTimeSecs",iTime); set_gamerules_float("CHalfLifeMultiplay","m_fRoundCount",get_gametime()); } message_begin(MSG_ALL,iMsgRoundTime); write_short(iTime); message_end(); } }
Couldn't release here... so here you go.I've forgot to mention that I'm using rehlds. ?!