venerdi Posted November 5, 2009 Share Posted November 5, 2009 I want to make a mod that would make it impossible for me to use any weapon in a certain area of the map. Here's the area: How would I go about doing this? Any help is much appreciated! Link to comment https://gtaforums.com/topic/431682-how-wouldido-this/ Share on other sites More sharing options...
drakic Posted November 5, 2009 Share Posted November 5, 2009 Just make player drop all weapons via script, just like it happens in VC near Leaf Links club. Link to comment https://gtaforums.com/topic/431682-how-wouldido-this/#findComment-1059614575 Share on other sites More sharing options...
Adler Posted November 6, 2009 Share Posted November 6, 2009 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now