
17.08.2018, 22:26
|
|
Флудер
Регистрация: 18.03.2013
Сообщений: 4,080
С нами:
6921957
Репутация:
183
|
|
C++:
Код:
vehicle_info
*
my_veh
=
vehicle_info_get
(
VEHICLE_SELF
,
NULL
)
;
if
(
my_veh
)
{
float
coord
[
3
]
;
coord
[
0
]
=
pPedSelf
->
GetPosition
(
)
->
fX
;
coord
[
1
]
=
pPedSelf
->
GetPosition
(
)
->
fY
-
2.0f
;
coord
[
2
]
=
pPedSelf
->
GetPosition
(
)
->
fZ
;
if
(
my_veh
->
hitpoints
==
200
)
// if vehicle hp is 200 then exit from car
{
GTAfunc_RemoveActorFromCarAndPutAt
(
&
coord
)
;
}
}
|
|
|