Skip to content

Commit 26510ff

Browse files
authored
Merge pull request #74 from BSVino/votekick-fix
Ban and kick with a single command
2 parents f1db561 + 0d93cab commit 26510ff

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mp/src/game/shared/sdk/sdk_gamerules.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -3164,8 +3164,7 @@ class CKickPlayerVoteIssue : public CDAIssue
31643164
return;
31653165
}
31663166

3167-
engine->ServerCommand(UTIL_VarArgs( "banid 30 %s\n", GetDetailsString() ));
3168-
engine->ServerCommand(UTIL_VarArgs( "kickid %s\n", GetDetailsString() ));
3167+
engine->ServerCommand(UTIL_VarArgs( "banid 30 %s kick\n", GetDetailsString() ));
31693168
engine->ServerCommand("writeip\n");
31703169
engine->ServerCommand("writeid\n");
31713170
}

0 commit comments

Comments
 (0)