Change price of the car shops?
-
- Jaywalker
- Posts: 9
- Joined: 14 Feb 2010, 19:52
- GH nick: Steve
Change price of the car shops?
How can i change the price of the car shops and the ammount of the ammo?
Re: Change price of the car shops?
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.
Otherwise it requires hacking SCR files and / or creating trainer.
Re: Change price of the car shops?
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
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
- Gustavob
- Immortal
- Posts: 407
- Joined: 18 May 2009, 21:40
- GH nick: Gustavob
|Gustavob| - Location: Nowhere.
- Contact:
Re: Change price of the car shops?
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.
Re: Change price of the car shops?
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).
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
- Jozodezokokotar
- Mugger
- Posts: 12
- Joined: 23 Feb 2010, 18:42
- GH nick: Jozodezokokotar
- Location: Czech Republic
- Contact:
Re: Change price of the car shops?
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
see on http://gtamp.com/forum/viewtopic.php?f= ... 1127#p1127