From b0b593e84b690196f7f208ed649f6b89c483bef7 Mon Sep 17 00:00:00 2001 From: Pichai Lertwachirakul <46616744+zekodef@users.noreply.github.com> Date: Mon, 7 Oct 2019 15:26:19 +0700 Subject: [PATCH] Admin commands isn't coverage in select VIP notes Admin commands can create house for V.I.P House's note only. It doesn't cover Select House's note. It is also in create garage and vehicle. Reported-by: Pichai Lertwachirakul ( zekodef ) Reported-by: Charlyn Secretaria ( Dead_Pool2k4 ) Acked-by: Lorenc Pekaj ( zeelorenc ) Signed-off-by: Pichai Lertwachirakul ( zekodef ) --- gamemodes/irresistible/cnr/commands/admin/admin_five.pwn | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gamemodes/irresistible/cnr/commands/admin/admin_five.pwn b/gamemodes/irresistible/cnr/commands/admin/admin_five.pwn index b158751..b1dfe20 100644 --- a/gamemodes/irresistible/cnr/commands/admin/admin_five.pwn +++ b/gamemodes/irresistible/cnr/commands/admin/admin_five.pwn @@ -151,7 +151,7 @@ CMD:creategarage( playerid, params[ ] ) { mysql_format( dbHandle, szBigString, sizeof( szBigString ), - "SELECT * FROM `NOTES` WHERE (`NOTE` LIKE '{FFDC2E}V.I.P Garage%%' ) AND USER_ID=%d AND `DELETED` IS NULL LIMIT 0,1", + "SELECT * FROM `NOTES` WHERE (`NOTE` LIKE '{FFDC2E}V.I.P Garage%%' OR `NOTE` LIKE '{FFDC2E}Select Garage%%') AND USER_ID=%d AND `DELETED` IS NULL LIMIT 0,1", IsPlayerConnected( pID ) ? GetPlayerAccountID( pID ) : 0 ); mysql_tquery( dbHandle, szBigString, "OnAdminCreateGarage", "ddd", playerid, pID, cost ); @@ -695,7 +695,7 @@ CMD:createcar( playerid, params[ ] ) if ( ( iModel = GetVehicleModelFromName( vName ) ) != -1 ) { mysql_format( dbHandle, szBigString, sizeof( szBigString ), - "SELECT * FROM `NOTES` WHERE (`NOTE` LIKE '{FFDC2E}V.I.P Vehicle%%' ) AND USER_ID=%d AND `DELETED` IS NULL LIMIT 0,1", + "SELECT * FROM `NOTES` WHERE (`NOTE` LIKE '{FFDC2E}V.I.P Vehicle%%' OR `NOTE` LIKE '{FFDC2E}Select Vehicle%%') AND USER_ID=%d AND `DELETED` IS NULL LIMIT 0,1", GetPlayerAccountID( pID ) ); mysql_tquery( dbHandle, szBigString, "OnAdminCreateVehicle", "ddd", playerid, pID, iModel ); @@ -862,7 +862,7 @@ CMD:createhouse( playerid, params[ ] ) { mysql_format( dbHandle, szBigString, sizeof( szBigString ), - "SELECT * FROM `NOTES` WHERE (`NOTE` LIKE '{FFDC2E}V.I.P House%%' ) AND USER_ID=%d AND `DELETED` IS NULL LIMIT 0,1", + "SELECT * FROM `NOTES` WHERE (`NOTE` LIKE '{FFDC2E}V.I.P House%%' OR `NOTE` LIKE '{FFDC2E}Select House%%') AND USER_ID=%d AND `DELETED` IS NULL LIMIT 0,1", IsPlayerConnected( pID ) ? GetPlayerAccountID( pID ) : 0 ); mysql_tquery( dbHandle, szBigString, "OnAdminCreateHouse", "ddd", playerid, pID, cost ); @@ -1055,4 +1055,4 @@ CMD:removeboombox( playerid, params[ ] ) SetPlayerBoombox( pID, false ); } return 1; -} \ No newline at end of file +}