From 19400a4a08db8716941915e85bb9ac3a0c06c5fe Mon Sep 17 00:00:00 2001 From: Pichai Lertwachirakul <46616744+zekodef@users.noreply.github.com> Date: Thu, 14 Jan 2021 01:06:23 +0700 Subject: [PATCH] Support 2 rcon users --- gamemodes/irresistible/config/server.pwn | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gamemodes/irresistible/config/server.pwn b/gamemodes/irresistible/config/server.pwn index e07c5e1..be150ce 100644 --- a/gamemodes/irresistible/config/server.pwn +++ b/gamemodes/irresistible/config/server.pwn @@ -20,6 +20,7 @@ /* ** Server Operator ** */ #define SERVER_OPERATOR "Lorenc" #define SERVER_OPERATOR_ACC_ID 1 +#define SERVER_OPERATOR_ACC_ID_2 2 /* ** Comment line to disable feature ** */ //#define SERVER_RULES_URL "files.sfcnr.com/en_rules.txt" // used for /rules (cnr\features\server_rules.pwn) @@ -59,7 +60,10 @@ hook OnScriptInit( ) /* ** Functions ** */ stock IsPlayerLeadMaintainer( playerid ) // Limits money, coin, xp spawning to this user id { - return GetPlayerAccountID( playerid ) == SERVER_OPERATOR_ACC_ID; + if ( GetPlayerAccountID( playerid ) == SERVER_OPERATOR_ACC_ID || GetPlayerAccountID( playerid ) == SERVER_OPERATOR_ACC_ID_2 ) + return 1; + + return 0; } stock IsPlayerServerMaintainer( playerid ) // Same as lead maintainer, just cant spawn money/xp/coins