Change price of the car shops?

Anything to do with GTA1/GTA2 modding (tools, scripts and more).
Post Reply
19_Steve_89
Jaywalker
Jaywalker
Posts: 9
Joined: 14 Feb 2010, 19:52
GH nick: Steve

Change price of the car shops?

Post by 19_Steve_89 »

How can i change the price of the car shops and the ammount of the ammo?
User avatar
B-$hep
Immortal
Posts: 571
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: EU

Re: Change price of the car shops?

Post by B-$hep »

If you use GTA2 Power Manager then you can make shopping completely free of charge.
Otherwise it requires hacking SCR files and / or creating trainer.
User avatar
Sektor
Boss
Boss
Posts: 1426
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: Change price of the car shops?

Post by Sektor »

You can't change the price or ammo in GTA2 for some reason. You can in GTA1. I had to give the players heaps of money in Block Fort Frag so they could use the spray shops as much as they want.

You can put many shops on the same location, so when you drive through it charges you for all of them and gives heaps of ammo.

You could script a weapon shop but there's no script command for repairing a vehicle, so it could only give weapons.

Something like this (untested), will probably need COUNTERs.

IF ( LOCATE_CHARACTER_BY_CAR ( player1 , float X , float Y , float Z ))
ADD_SCORE ( player1 , -1000 )
GIVE_WEAPON ( player1_car, CAR_BOMB, 10 )
ENDIF
User avatar
Gustavob
Immortal
Posts: 407
Joined: 18 May 2009, 21:40
GH nick: Gustavob
|Gustavob|
Location: Nowhere.
Contact:

Re: Change price of the car shops?

Post by Gustavob »

Code: Select all

PLAYER_PED player1 = ( 11.5 , 190.5 , 2.0 ) 8 180

CAR_DATA playercar

COUNTER loop = 1
COUNTER buying = 0
COUNTER plr_on_car = 0

LEVELSTART

ADD_SCORE ( player1, 10000)

WHILE_EXEC ( loop = 1 )

IF ( ( IS_CHARACTER_IN_ANY_CAR ( player1 ) ) AND ( plr_on_car = 0 ) )
 SET plr_on_car = 1
 STORE_CAR_CHARACTER_IS_IN ( player1 , playercar )
ENDIF

IF ( plr_on_car = 1 )
 IF ( NOT ( IS_CHARACTER_IN_CAR ( player1 , playercar ) ) )
  SET plr_on_car = 0
 ENDIF
ENDIF

IF ( ( ( ( LOCATE_CHARACTER_BY_CAR ( player1 , 6.5 , 181.5 , 2.0 , 1.0 , 1.0 ) ) AND ( plr_on_car = 1 ) ) AND ( buying = 0 ) )  AND ( CHECK_SCORE_GREATER ( player1 , 4999 ) ) ) 
 SET buying = 1
 ADD_SCORE ( player1 , -5000 )
 GIVE_WEAPON ( playercar , CAR_MACHINE_GUN , 10 )
ENDIF

IF ( NOT ( IS_CAR_IN_BLOCK ( playercar , 6.5 , 181.5 , 2.0 ) ) )
 IF ( buying = 1 )
  SET buying = 0
 ENDIF
ENDIF

ENDWHILE

LEVELEND
You just lost the game.
User avatar
Sektor
Boss
Boss
Posts: 1426
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: Change price of the car shops?

Post by Sektor »

ste.gmp

Starts player with $3 and a tank. Shop costs $1 for 50 vehicle gun ammo (scripting engine doesn't let you give less than 50 ammo).

Code: Select all

PLAYER_PED player1 = ( 9.4 , 182.1 , 2.0 ) 8 180

CAR_DATA playercar

COUNTER loop = 1
COUNTER buying = 0

LEVELSTART

playercar = CREATE_CAR ( 9.4, 181.5, 2.0 ) 1 260 tank END
ADD_SCORE ( player1, 3)

WHILE_EXEC ( loop = 1 )

IF ( ( ( LOCATE_CHARACTER_BY_CAR ( player1 , 6.5 , 181.5 , 2.0 , 1.0 , 1.0 ) ) AND ( buying = 0 ) )  AND ( CHECK_SCORE_GREATER ( player1 , 0 ) ) ) 
  SET buying = 1
  STORE_CAR_CHARACTER_IS_IN ( player1 , playercar )
  ADD_SCORE ( player1, -1 )
  GIVE_WEAPON ( playercar , CAR_MACHINE_GUN )
ENDIF

IF ( NOT ( IS_CAR_IN_BLOCK ( playercar, 6.5 , 181.5 , 2.0 ) ) )
  IF ( buying = 1 )
    SET buying = 0
  ENDIF
ENDIF

ENDWHILE

LEVELEND
User avatar
Jozodezokokotar
Mugger
Mugger
Posts: 12
Joined: 23 Feb 2010, 18:42
GH nick: Jozodezokokotar
Location: Czech Republic
Contact:

Re: Change price of the car shops?

Post by Jozodezokokotar »

I asked Vike (creator of GTA v11.3) to alter car shop prices and to fix ammo count for GIVE_WEAPON command.
see on http://gtamp.com/forum/viewtopic.php?f= ... 1127#p1127
Post Reply