Skip to content

Commit

Permalink
v1.1.8.8 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
WessTorn committed Jun 10, 2021
1 parent 2a30b41 commit 52bdb16
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 16 deletions.
1 change: 1 addition & 0 deletions data/lang/mixsystem.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ SET_MAXROUNDS = %s ^3%s ^1 set ^3maxrounds^1 to ^3%d^1 rounds.
NOT_SET_MR = %s Disable timer mode, before changing maxrounds.

KILL_HIMSELF = %s ^3%s ^1killed himself
KILL_NOT = %s Kill during deathmatch is not available.
PLR_DISC = %s Player ^3%n^1 was disconnected..

SUR_WAIT = %s Wait ^3%s^1 for surrender!
Expand Down
19 changes: 8 additions & 11 deletions scripting/HnsMatchSystem.sma
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public plugin_precache() {
}

public plugin_init() {
register_plugin("Hide'n'Seek Match System", "1.1.8.7", "??"); // Спасибо: Cultura, Garey, Medusa, Ruffman, Conor
register_plugin("Hide'n'Seek Match System", "1.1.8.8", "??"); // Спасибо: Cultura, Garey, Medusa, Ruffman, Conor

get_mapname(g_eMatchInfo[e_mMapName], charsmax(g_eMatchInfo[e_mMapName]));

Expand Down Expand Up @@ -65,20 +65,17 @@ public taskDelayedMode() {
taskPrepareMode(e_mTraining);
}

if(get_pcvar_num(g_eCvars[e_cRules]) == 1)
{
if(get_pcvar_num(g_eCvars[e_cRules]) == 1) {
g_iCurrentRules = e_mMR;
}
else
{
} else {
g_iCurrentRules = e_mTimer;
}
}

public registerMode() {
g_iHostageEnt = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "hostage_entity"));
set_entvar(g_iHostageEnt, var_origin, Float:{ 0.0, 0.0, -55000.0 });
set_entvar(g_iHostageEnt, var_size, Float:{ -1.0, -1.0, -1.0 }, Float:{ 1.0, 1.0, 1.0 });
set_pev(g_iHostageEnt, pev_origin, Float:{ 0.0, 0.0, -55000.0 });
set_pev(g_iHostageEnt, pev_size, Float:{ -1.0, -1.0, -1.0 }, Float:{ 1.0, 1.0, 1.0 });
dllfunc(DLLFunc_Spawn, g_iHostageEnt);
}

Expand Down Expand Up @@ -230,7 +227,7 @@ public taskPrepareMode(mode) {
loadMapCFG();

new iPlayers[MAX_PLAYERS], iNum;
get_players(iPlayers, iNum, "e", "TERRORIST");
get_players(iPlayers, iNum, "ce", "TERRORIST");
g_eMatchInfo[e_mTeamSizeTT] = iNum;

fnConvertTime(get_pcvar_float(g_eCvars[e_cCapTime]) * 60.0, g_eMatchInfo[e_mWinTime], charsmax(g_eMatchInfo[e_mWinTime]));
Expand Down Expand Up @@ -272,7 +269,7 @@ public plugin_cfg() {
restartRound(Float:delay = 0.5) {
if (g_bSurvival) {
new iPlayers[32], iNum;
get_players(iPlayers, iNum);
get_players(iPlayers, iNum, "c");

g_flSidesTime[g_iCurrentSW] -= g_flRoundTime;

Expand Down Expand Up @@ -338,4 +335,4 @@ disableSemiclip() {
server_cmd("semiclip_option time 0");
}

// Спасибо: Cultura, Garey, Medusa, Ruffman, Conor
// Спасибо: Cultura, Garey, Medusa, Ruffman, Conor
2 changes: 1 addition & 1 deletion scripting/include/hns-match/forward.inc
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public fwdGameNameDesc() {

public fwdClientKill(id) {
if (g_iCurrentMode == e_mDM) {
client_print_color(0, print_team_blue, "%s Kill during deathmatch is not available.", hns_tag);
client_print_color(0, print_team_blue, "%L", id, "KILL_NOT", prefix);
return FMRES_SUPERCEDE;
} else {
client_print_color(0, print_team_blue, "%L", id, "KILL_HIMSELF", prefix, getUserName(id));
Expand Down
6 changes: 3 additions & 3 deletions scripting/include/hns-match/hook.inc
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public rgRoundEnd(WinStatus:status, ScenarioEventEndRound:event, Float:tmDelay)
if (g_iCurrentRules == e_mMR) {
if (status == WINSTATUS_TERRORISTS) {
new players[MAX_PLAYERS], pnum;
get_players(players, pnum, "ae", "CT");
get_players(players, pnum, "ace", "CT");
if (!pnum) {
new Float:roundtime = get_pcvar_float(g_eCvars[e_cRoundTime]) * 60.0;
g_flSidesTime[g_iCurrentSW] += roundtime - g_flRoundTime;
Expand Down Expand Up @@ -225,14 +225,14 @@ public rgOnRoundFreezeEnd() {

public rgFlPlayerFallDamage(id) {
if (g_iCurrentMode == e_mMatch) {
statsDmg(id);
statsDmg(id);
}
}

public taskRoundEvent() {
if (g_bSurvival) {
new iPlayers[32], count;
get_players(iPlayers, count, "he", "TERRORIST");
get_players(iPlayers, count, "che", "TERRORIST");

for(new i; i < 10; i++) {
g_iBestAuth[i] = "";
Expand Down
2 changes: 1 addition & 1 deletion scripting/include/hns-match/user.inc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ stock bool:getUserInMatch(id) {
return false;

new iPlayers[MAX_PLAYERS], iNum;
get_players(iPlayers, iNum, "h");
get_players(iPlayers, iNum, "ch");

for (new i; i < iNum; i++) {
new iPlayer = iPlayers[i];
Expand Down

0 comments on commit 52bdb16

Please sign in to comment.