CLEO Help Help

CLEO related
Status
Not open for further replies.

SpRoXx

Member
Joined
Oct 29, 2016
Messages
23
Reaction score
1
Hi guys, in trollboss.cs there is a function that burns other car when y type tb.fire <playername>​
Code:
:FIRE_ACT
wait 0
6@ = Actor.CurrentCar(4@)
Actor.StorePos($PLAYER_ACTOR, 7@, 8@, 9@)
if
Actor.Driving($PLAYER_ACTOR)
then
    5@ = Actor.CurrentCar($PLAYER_ACTOR)
    036A: put_actor $PLAYER_ACTOR in_car 6@
    wait 150  
    0224: set_car 6@ health_to 200
    wait 400
    036A: put_actor $PLAYER_ACTOR in_car 5@
    0362: remove_actor $PLAYER_ACTOR from_car_and_place_at 7@ 8@ 9@
    036A: put_actor $PLAYER_ACTOR in_car 5@
else
    0430: put_actor $PLAYER_ACTOR into_car 6@ passenger_seat -1
    wait 500
    036A: put_actor $PLAYER_ACTOR in_car 6@
    wait 150
    0224: set_car 6@ health_to 200
    wait 400
    0362: remove_actor $PLAYER_ACTOR from_car_and_place_at 7@ 8@ 9@
    wait 200
    Camera.Restore_WithJumpCut()
end
0@ = 0
SAMP.CmdRet()
jump @MAIN

I've some question to y all​
all of the about variables :(


Actor.StorePos($PLAYER_ACTOR, 7@, 8@, 9@)

what is 7@, 8@, 9@, what is it doing

can y explain me this code, and the variables plzz, i messed up with this thing..
Thanks for yr attention..  
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,175
Solutions
6
Reaction score
899
Location
Lithuania
Actor.StorePos($PLAYER_ACTOR, 7@, 8@, 9@) - converting you pos to 7@ 8@ 9@
then you can use somethink like that
0362: remove_actor $PLAYER_ACTOR from_car_and_place_at 7@ 8@ 9@
etc..
 

SpRoXx

Member
Joined
Oct 29, 2016
Messages
23
Reaction score
1
Parazitas said:
Actor.StorePos($PLAYER_ACTOR, 7@, 8@, 9@)  -  converting you pos to  7@ 8@ 9@
then you can use somethink like that
0362: remove_actor $PLAYER_ACTOR from_car_and_place_at 7@ 8@ 9@
etc..

036A: put_actor $PLAYER_ACTOR in_car 6@

6@ is the position of the target player ?
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,175
Solutions
6
Reaction score
899
Location
Lithuania
SpRoXx said:
Parazitas said:
Actor.StorePos($PLAYER_ACTOR, 7@, 8@, 9@)  -  converting you pos to  7@ 8@ 9@
then you can use somethink like that
0362: remove_actor $PLAYER_ACTOR from_car_and_place_at 7@ 8@ 9@
etc..

036A: put_actor $PLAYER_ACTOR in_car 6@

6@ is the position of the target player ?

6@ is car.
 
Status
Not open for further replies.
Top