Skip to content

Commit 52bdb16

Browse files
committed
v1.1.8.8 fix
1 parent 2a30b41 commit 52bdb16

File tree

5 files changed

+14
-16
lines changed

5 files changed

+14
-16
lines changed

data/lang/mixsystem.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ SET_MAXROUNDS = %s ^3%s ^1 set ^3maxrounds^1 to ^3%d^1 rounds.
99
NOT_SET_MR = %s Disable timer mode, before changing maxrounds.
1010

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

1415
SUR_WAIT = %s Wait ^3%s^1 for surrender!

scripting/HnsMatchSystem.sma

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public plugin_precache() {
77
}
88

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

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

@@ -65,20 +65,17 @@ public taskDelayedMode() {
6565
taskPrepareMode(e_mTraining);
6666
}
6767

68-
if(get_pcvar_num(g_eCvars[e_cRules]) == 1)
69-
{
68+
if(get_pcvar_num(g_eCvars[e_cRules]) == 1) {
7069
g_iCurrentRules = e_mMR;
71-
}
72-
else
73-
{
70+
} else {
7471
g_iCurrentRules = e_mTimer;
7572
}
7673
}
7774

7875
public registerMode() {
7976
g_iHostageEnt = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "hostage_entity"));
80-
set_entvar(g_iHostageEnt, var_origin, Float:{ 0.0, 0.0, -55000.0 });
81-
set_entvar(g_iHostageEnt, var_size, Float:{ -1.0, -1.0, -1.0 }, Float:{ 1.0, 1.0, 1.0 });
77+
set_pev(g_iHostageEnt, pev_origin, Float:{ 0.0, 0.0, -55000.0 });
78+
set_pev(g_iHostageEnt, pev_size, Float:{ -1.0, -1.0, -1.0 }, Float:{ 1.0, 1.0, 1.0 });
8279
dllfunc(DLLFunc_Spawn, g_iHostageEnt);
8380
}
8481

@@ -230,7 +227,7 @@ public taskPrepareMode(mode) {
230227
loadMapCFG();
231228

232229
new iPlayers[MAX_PLAYERS], iNum;
233-
get_players(iPlayers, iNum, "e", "TERRORIST");
230+
get_players(iPlayers, iNum, "ce", "TERRORIST");
234231
g_eMatchInfo[e_mTeamSizeTT] = iNum;
235232

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

277274
g_flSidesTime[g_iCurrentSW] -= g_flRoundTime;
278275

@@ -338,4 +335,4 @@ disableSemiclip() {
338335
server_cmd("semiclip_option time 0");
339336
}
340337

341-
// Спасибо: Cultura, Garey, Medusa, Ruffman, Conor
338+
// Спасибо: Cultura, Garey, Medusa, Ruffman, Conor

scripting/include/hns-match/forward.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public fwdGameNameDesc() {
7373

7474
public fwdClientKill(id) {
7575
if (g_iCurrentMode == e_mDM) {
76-
client_print_color(0, print_team_blue, "%s Kill during deathmatch is not available.", hns_tag);
76+
client_print_color(0, print_team_blue, "%L", id, "KILL_NOT", prefix);
7777
return FMRES_SUPERCEDE;
7878
} else {
7979
client_print_color(0, print_team_blue, "%L", id, "KILL_HIMSELF", prefix, getUserName(id));

scripting/include/hns-match/hook.inc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public rgRoundEnd(WinStatus:status, ScenarioEventEndRound:event, Float:tmDelay)
5151
if (g_iCurrentRules == e_mMR) {
5252
if (status == WINSTATUS_TERRORISTS) {
5353
new players[MAX_PLAYERS], pnum;
54-
get_players(players, pnum, "ae", "CT");
54+
get_players(players, pnum, "ace", "CT");
5555
if (!pnum) {
5656
new Float:roundtime = get_pcvar_float(g_eCvars[e_cRoundTime]) * 60.0;
5757
g_flSidesTime[g_iCurrentSW] += roundtime - g_flRoundTime;
@@ -225,14 +225,14 @@ public rgOnRoundFreezeEnd() {
225225

226226
public rgFlPlayerFallDamage(id) {
227227
if (g_iCurrentMode == e_mMatch) {
228-
statsDmg(id);
228+
statsDmg(id);
229229
}
230230
}
231231

232232
public taskRoundEvent() {
233233
if (g_bSurvival) {
234234
new iPlayers[32], count;
235-
get_players(iPlayers, count, "he", "TERRORIST");
235+
get_players(iPlayers, count, "che", "TERRORIST");
236236

237237
for(new i; i < 10; i++) {
238238
g_iBestAuth[i] = "";

scripting/include/hns-match/user.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ stock bool:getUserInMatch(id) {
2525
return false;
2626

2727
new iPlayers[MAX_PLAYERS], iNum;
28-
get_players(iPlayers, iNum, "h");
28+
get_players(iPlayers, iNum, "ch");
2929

3030
for (new i; i < iNum; i++) {
3131
new iPlayer = iPlayers[i];

0 commit comments

Comments
 (0)