validate house id and biz id in confirmation dialogs ... update updates.txt
This commit is contained in:
parent
3b28c1b30f
commit
1a7d8695d2
@ -587,9 +587,15 @@ hook OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )
|
||||
if ( dialogid == DIALOG_BUSINESS_SELL_CONFIRM && response )
|
||||
{
|
||||
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 );
|
||||
|
||||
|
||||
p_OwnedBusinesses[ playerid ] --;
|
||||
g_businessData[ iBusiness ] [ E_OWNER_ID ] = 0;
|
||||
|
||||
|
@ -105,9 +105,13 @@ hook OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )
|
||||
{
|
||||
if ( dialogid == DIALOG_HOUSE_SELL && response )
|
||||
{
|
||||
new
|
||||
new
|
||||
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 );
|
||||
AddFileLogLine( "log_houses.txt", szBigString );
|
||||
p_OwnedHouses[ playerid ] --;
|
||||
|
@ -1,15 +1,5 @@
|
||||
(+) "/perks" has been added and is based off your total level.
|
||||
(+) Gang bank accounts are charged $500 per spawn in a facility.
|
||||
(+) Picking safe / thermal drill speeds improve if you increase your robbery level.
|
||||
(+) Adds an option to disable paintball chatting.
|
||||
(+) You can now preview vehicle components and toys before you buy them.
|
||||
(+) 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.
|
||||
(+) Added confirmation dialog before selling a home / business / vehicle components.
|
||||
(+) Pilot and train minijobs are now saved to the database (and in /highscores).
|
||||
(+) Adds some strippers in the LV brothel (for fun).
|
||||
(+) Adds Hide From Minimap perk (costs $25,000) ... hides you for 1 minute.
|
||||
(*) Fixes death bug with players suiciding in a vehicle.
|
||||
|
Loading…
Reference in New Issue
Block a user