validate house id and biz id in confirmation dialogs ... update updates.txt

This commit is contained in:
Lorenc Pekaj 2018-10-10 12:19:18 +11:00
parent 3b28c1b30f
commit 1a7d8695d2
3 changed files with 18 additions and 18 deletions

View File

@ -587,7 +587,13 @@ hook OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )
if ( dialogid == DIALOG_BUSINESS_SELL_CONFIRM && response ) if ( dialogid == DIALOG_BUSINESS_SELL_CONFIRM && response )
{ {
new new
iBusiness = GetPVarInt( playerid, "biz_sell_id" ), iBusiness = GetPVarInt( playerid, "biz_sell_id" );
if ( ! Iter_Contains( business, iBusiness ) || ! IsBusinessAssociate( playerid, iBusiness ) ) {
return SendError( playerid, "You do not have access to this feature." );
}
new
iCashMoney = floatround( g_businessData[ iBusiness ] [ E_COST ] / 2 ); iCashMoney = floatround( g_businessData[ iBusiness ] [ E_COST ] / 2 );
p_OwnedBusinesses[ playerid ] --; p_OwnedBusinesses[ playerid ] --;

View File

@ -108,6 +108,10 @@ hook OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )
new new
ID = GetPVarInt( playerid, "house_sell_id" ); ID = GetPVarInt( playerid, "house_sell_id" );
if ( ! Iter_Contains( houses, ID ) || ! IsPlayerHomeOwner( playerid, ID ) ) {
return SendError( playerid, "You do not have access to this feature." );
}
format( szBigString, sizeof( szBigString ), "[SELL] [%s] %s | %s | %d\r\n", getCurrentDate( ), ReturnPlayerName( playerid ), g_houseData[ ID ][ E_OWNER ], ID ); format( szBigString, sizeof( szBigString ), "[SELL] [%s] %s | %s | %d\r\n", getCurrentDate( ), ReturnPlayerName( playerid ), g_houseData[ ID ][ E_OWNER ], ID );
AddFileLogLine( "log_houses.txt", szBigString ); AddFileLogLine( "log_houses.txt", szBigString );
p_OwnedHouses[ playerid ] --; p_OwnedHouses[ playerid ] --;

View File

@ -1,15 +1,5 @@
(+) "/perks" has been added and is based off your total level. (+) Added confirmation dialog before selling a home / business / vehicle components.
(+) Gang bank accounts are charged $500 per spawn in a facility. (+) Pilot and train minijobs are now saved to the database (and in /highscores).
(+) Picking safe / thermal drill speeds improve if you increase your robbery level. (+) Adds some strippers in the LV brothel (for fun).
(+) Adds an option to disable paintball chatting. (+) Adds Hide From Minimap perk (costs $25,000) ... hides you for 1 minute.
(+) You can now preview vehicle components and toys before you buy them. (*) Fixes death bug with players suiciding in a vehicle.
(+) Adds multiple other /highscores including hits, fires, burglaries, blown jails and blown vaults.
(+) You can now export burglared items at local pawn stores in LV and LS.
(+) Adds /smoke animation.
(/) Passive mode is automatically toggled for every player, use "/passive" to disable it.
(/) Business payouts have been significantly increased (how it was originally).
(/) You will drop health pickups matching your DM level (10+ DM level only for now).
(/) The XP bar has different colours for different levels.
(/) You need at least 7 days of VIP remaining before you can upgrade it.
(*) Fix business issue with production not beginning with maxed supplies.
(*) Addressed issue with clerks giving too much XP when robbing them.