Jump to content

Need help with coding


Bandiits

Recommended Posts

I'm beginner at scm coding (ok, I know how to place cars's, weapon's, bribes, etc.) but this isn't about that smile.gif

So, I set player to appear drunk at the start of the game, but how can I do that the player stop being drunk when I get in marker or something?

Link to comment
Share on other sites

Being not drunk is the same as having a drunk level of 0, use that and what you know about setting the level already.

Link to comment
Share on other sites

but i don't know how to add a marker, and when player step's into marker, he's not drunk

Link to comment
Share on other sites

Below see the example (SB sintax):

 

02A8: $Marker = create_marker 63 at 2067.4 -1831.2 13.5 //This code create a marker0164: disable_marker $Marker //This code delete the marker 

You can use globals or locals variables, but try to use local variables whenever possible. wink.gif

 

 

...and when player step's into marker, he's not drunk
You have to do a code like this (pseudo code):

 

if actor $PLAYER_ACTOR near coords 2067.4 -1831.2 13.5 thenset drunk level of to 0

Try this.

 

Link to comment
Share on other sites

Thanks guys for helping me out, but when i try to compile i got this message :

user posted image

Edited by Bandiits
Link to comment
Share on other sites

No man, is not so! facedesk.gif I say PSEUDO CODE, you can not copy and paste simply!

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
  • 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.