Jump to content

How wouldIdo this?


Recommended Posts

Do you have the coords of that area?

 

Try a loop checking if the player is in that area:

 

{$CLEO .cs}:STARTwait 1000if// Pick between one of the two (one has extra Z coord params); put in the coords of your area:{    00A3:   actor $PLAYER_ACTOR sphere 0 in_rectangle_cornerA (X, Y) cornerB (X, Y) }{    00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere (X, Y, Z) radius (X, Y, Z)       }jf @START// Either one of these would work fine:{0881: set_player $PLAYER_CHAR able_to_shoot_weapons 0}{01B9: set_actor 2@ armed_weapon_to 00992: set_player $PLAYER_CHAR weapons_scrollable 0}:LOOPwait 0if// Same choice as in label START:{    80A3:   not actor $PLAYER_ACTOR sphere 0 in_rectangle_cornerA (X, Y) cornerB (X, Y) }{    80FE:   not actor $PLAYER_ACTOR sphere 0 in_sphere (X, Y, Z) radius (X, Y, Z)       }jf @LOOP// Same as in label START:{0881: set_player $PLAYER_CHAR able_to_shoot_weapons 1}{0992: set_player $PLAYER_CHAR weapons_scrollable 1}jump @START

 

Copy and paste ^ into Sanny for better viewing.

Link to comment
https://gtaforums.com/topic/431682-how-wouldido-this/#findComment-1059615113
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.