From bcd7561e33fd5fcc029baf19a9bf3348c2c91cac Mon Sep 17 00:00:00 2001 From: Lorenc Pekaj Date: Thu, 4 Apr 2019 19:11:12 +1100 Subject: [PATCH] Reset undercover, server mainter, etc. --- gamemodes/irresistible/config/server.pwn | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/gamemodes/irresistible/config/server.pwn b/gamemodes/irresistible/config/server.pwn index 911b1f6..9cbeb7d 100644 --- a/gamemodes/irresistible/config/server.pwn +++ b/gamemodes/irresistible/config/server.pwn @@ -53,23 +53,27 @@ hook OnScriptInit( ) } /* ** Functions ** */ -stock IsPlayerLeadMaintainer( playerid ) +stock IsPlayerLeadMaintainer( playerid ) // Limits money, coin, xp spawning to this user id { - return GetPlayerAccountID( playerid ) == 1; // limits money, coin, xp spawning to this user + return GetPlayerAccountID( playerid ) == 1; } -stock IsPlayerServerMaintainer( playerid ) +stock IsPlayerServerMaintainer( playerid ) // Same as lead maintainer, just cant spawn money/xp/coins { - new - account_id = GetPlayerAccountID( playerid ); + if ( IsPlayerLeadMaintainer( playerid ) ) + return true; - return IsPlayerLeadMaintainer( playerid ) || account_id == 277833 || account_id == 758617; // same as lead maintainer, just cant spawn money/xp/coins + // new account_id = GetPlayerAccountID( playerid ); + // return account_id == -1; + return false; } -stock IsPlayerUnderCover( playerid ) // StefiTV852, Shepard23, JamesComey +stock IsPlayerUnderCover( playerid ) // Undercover accounts allow admin commands on a specific id unnoticed { - new - account_id = GetPlayerAccountID( playerid ); + if ( ! IsPlayerLoggedIn( playerid ) ) + return false; - return ( account_id == 917827 || account_id == 917829 || account_id == 921105 || account_id == 721420 ) && IsPlayerLoggedIn( playerid ); + // new account_id = GetPlayerAccountID( playerid ); + // return account_id == 1; + return false; }