Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

Script help


Node
 Share

Recommended Posts

Okay so I have this ultra simple script here.

 

It's a script that gives you all weapons with infinite ammunition, infinite run and sets your health and armour to max.

 

The health, armour and inifnite run opcodes are in a loop (Because even when getting attacked my health/armour will never deplete)

 

I have loaded the models accordingly and set them to execute under a key press along with the money opcode.

 

(I also tried the money opcode in a loop but got the same problem)

 

So when I compile and test these are my problems:

 

1. If the money opcode is included in my script then the money counter starts to decrease going into the minus area and turning red.

 

2. If the money opcode isn't included then my game crashes just after loading.

 

Now, I've been coding for just over a year in sanny builder and this is one of those really simple scripts that are c*nts to figure out what the problem is, please help.

 

P.S: The game is San Andreas

Link to comment
Share on other sites

Michael-Knight1

Just Change 03FE opcode :

 

03FE: set_actor $PLAYER_ACTOR money 9999999

 

To This One 0190

 

0109: player $PLAYER_CHAR money += 9999999

 

Link to comment
Share on other sites

Just Change 03FE opcode :

 

03FE: set_actor $PLAYER_ACTOR money 9999999

 

To This One 0190

 

0109: player $PLAYER_CHAR money += 9999999

 

I forgot to mention that I have already tried that.

Link to comment
Share on other sites

Hey Sorrow you forgot to put "if and" instead of "if" at label "NONAME_106".

EDIT: And about the money: I tried 0109 opcode and it worked at my PC. Also I think it's better to use higher delay then wait 0 when using key opcodes because when you use wait 0 the money and ammo increases almost forever. By the way if the opcodes can't help you try to find a mem address for the money - that value is changeable - it shouldn't be hard to find it.

Edited by JACK JONES
Link to comment
Share on other sites

Michael-Knight1

 

Just Change 03FE opcode :

 

03FE: set_actor $PLAYER_ACTOR money 9999999

 

To This One 0190

 

0109: player $PLAYER_CHAR money += 9999999

 

I forgot to mention that I have already tried that.

But the script it work for my pc very fine confused.gif

when i press 1 in keyboard i'll take the following weapons + inlimted ammo and $ 99999999 .

 

PS : change IF to IF AND here

 

:NONAME_106wait 0if  Model.Available(#KATANA)  Model.Available(#MOLOTOV)  Model.Available(#DESERT_EAGLE)  Model.Available(#SAWNOFF)  Model.Available(#MP5LNG)  Model.Available(#AK47)  Model.Available(#SNIPER)  Model.Available(#MINIGUN)jf @NONAME_106

 

Link to comment
Share on other sites

 

Use "038B: load_requested_models" OR "0248: model #MP5LNG available". Using both is a complete waste of memory.

Then why all tutorials using both ways and not to mention main.scm file which also has both ways in loading parts? Don't get me wrong - I'm not questioning your coding skils - I'm just confused.

Link to comment
Share on other sites

 

Then why all tutorials using both ways

All tutoriais are using both way because... hm, I don't know... Maybe in the year they didn't know really what 038B did.

 

 

and not to mention main.scm file which also has both ways in loading parts?

SA Main.scm has only one way, I mean, When they use 038B they don't check for the model\animation availability and vice versa.

 

As badboyl say everytime, Use 038B OR 0248. When using 038B you can be sure that the model is loaded, but in old computers it can cause a slowdown in the 038B time (And of course while faded out this slowdown is not visible tounge.gif)

Link to comment
Share on other sites

 

SA Main.scm has only one way

I was talking about VC main.scm but never mind.

Just one more thing: We all know that max number of conditions is 9 so if I decide to use only 038B way then is it relevant how much model requests I put with 0247? I mean can I put for exmpl 20 (which I've never tried btw).

Edited by JACK JONES
Link to comment
Share on other sites

SA Main.scm has only one way

I was talking about VC main.scm but never mind.

Just one more thing: We all know that max number of conditions is 9 so if I decide to use only 038B way then is it relevant how much model requests I put with 0247? I mean can I put for exmpl 20 (which I've never tried btw).

Probably in VC the opcode do the same (since the command name is LOAD_ALL_MODELS_NOW), R* just tried to make sure... with a unnecessary check, but in SA they wake up that the check was not necessary.

 

More models = more time to load, and since 038b stops everything to load the models, the time that 038b will have to return depends on the quantity of models to load.

Link to comment
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
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

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