From de05b615a63287578a92f3688800b613042362be Mon Sep 17 00:00:00 2001 From: Lorenc Pekaj Date: Sun, 24 Feb 2019 20:51:57 +1100 Subject: [PATCH] civ only minigame --- .../irresistible/cnr/features/battleroyale/battleroyale.pwn | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gamemodes/irresistible/cnr/features/battleroyale/battleroyale.pwn b/gamemodes/irresistible/cnr/features/battleroyale/battleroyale.pwn index 674773e..7bd9dab 100644 --- a/gamemodes/irresistible/cnr/features/battleroyale/battleroyale.pwn +++ b/gamemodes/irresistible/cnr/features/battleroyale/battleroyale.pwn @@ -289,6 +289,9 @@ hook OnPlayerEnterDynamicCP( playerid, checkpointid ) { if ( checkpointid == g_battleRoyaleStadiumCP ) { + if ( GetPlayerClass( playerid ) != CLASS_CIVILIAN ) { + return SendError( playerid, "You must be a civilian to use this feature." ); + } return BattleRoyale_ShowLobbies( playerid ); } return 1;