IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules Attention:

This is for the discussion and releasing of tutorials for modifying GTA. Anything that isn't a tutorial will be deleted without notification.

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


Pages: (31) « First ... 18 19 [20] 21 22 ... Last »  ( Go to first unread post ) Reply to this topicStart new topicStart Poll

 [GTA SA] ~ CLEO Script Tutorial ~

 
BEASTXxWOLF  
Posted: Monday, Apr 16 2012, 14:12
Quote Post


AlcatrazIV
Group Icon
Group: Members
Joined: Mar 22, 2011

XXXXX



Is it possible to attach searchlight to the end of a gun instead of hand?
PMMSNXbox Live
  Top
 

 
MichaelKnight1  
Posted: Monday, Apr 16 2012, 20:45
Quote Post


Snitch
Group Icon
Group: BUSTED!
Joined: Mar 24, 2012

us.gif

XXXXX



Hello Zaz sarcasm.gif , I want to know What is The Hex ??
and How To do it , anyways peace
PM
  Top
 

 
Ash_735  
Posted: Monday, Apr 16 2012, 20:55
Quote Post


Breaking Bad
Group Icon
Group: Members
Joined: Nov 15, 2005

uk.gif

Member Award




QUOTE (MichaelKnight1 @ Monday, Apr 16 2012, 20:45)
Hello Zaz sarcasm.gif , I want to know What is The Hex ??
and How To do it , anyways peace

...How do you function?
Users WebsitePMXbox LivePlayStation Network
  Top
 

 
fastman92  
Posted: Monday, Apr 16 2012, 22:21
Quote Post


фастман92 | ف
Group Icon
Group: Members
Joined: Jul 28, 2009

pl.gif

XXXXX



QUOTE (justys12 @ Monday, Apr 9 2012, 16:58)
QUOTE (ZAZ @ Monday, Apr 9 2012, 15:50)
QUOTE (justys12 @ Monday, Apr 9 2012, 13:44)
can someone tell my how to spawn added cars not replaced ?? because when i try spawn car whit id 18631 it just wont show up. confused.gif

Try it first with origin car id. Change then the id when you saw that it worked fine.
CODE
{$CLEO .cs}
thread 'CARSPWI'

0@ = 411 // < --- model ID


while true
wait 0
   if
      Player.Defined($PLAYER_CHAR)
   then
       if
           0AB0:   key_pressed 8// ----- press BACKSPACE
       then
           04C4: store_coords_to 11@ 12@ 13@ from_actor $PLAYER_ACTOR with_offset 0.0 5.0 0.2
           Model.Load(0@)
               while not Model.Available(0@)
               wait 0
               end
           1@ = Car.Create(0@, 11@, 12@, 13@)
           Model.Destroy(0@)
           Car.RemoveReferences(1@)
           wait 1000
       end
   end
end


Use Cleo carspawner for added cars:
Car Spawner By Fastman92 (cleo4)
AddCar spawner by ZAZ (cleo3/4)

Please don't post again here unless you have a question about the tutorial lessons

but can i make that car spawn in some location like in grove street? not whit key pressing. i using this code
CODE

014B: $PARKED_1 = init_parked_car_generator #AUDITT color 1 1 1 alarm 0 door_lock 0 0 10000 at 2552.3 -1692.5 9.2797 angle 0.0
014C: set_parked_car_generator $PARKED_1 cars_to_generate_to 101

but only cars whit id 612 and 613 spawning

GTA SA exe function that registers parket generatator checks if ID of vehicle is between 400 and 630 (range intentionally reserved for vehicles). You need ro patch this function in gta_sa.exe menory.
I have no time left to to do it since i started working to understand format of Painkiller's archives. I almost finished and now i only need to decode files that are compressed with ZLib algorithm. So Painkiller modding will be on the run.
Users WebsitePMMSN
  Top
 

 
MichaelKnight1  
Posted: Thursday, Apr 19 2012, 12:59
Quote Post


Snitch
Group Icon
Group: BUSTED!
Joined: Mar 24, 2012

us.gif

XXXXX



I salute all the people , I always say Peace , ok will go into the heart of the matter , in This Script While I Wanna To Active The Code Number 2 or 3 . . . Does not work . But The Code 1 is Work Is there a mistake of the Jump To Label ?? so This Pt. in my script , anyways peace icon14.gif
CODE
{$CLEO}
thread 'NEWKEYPCC'
0662: NOP "NEW KEYPRESS CHEAT CODE"
0662: NOP "CHEAT DISABLED BY FASTMA92"
0662: NOP "VERSION : 1.0"
0662: NOP "AUTHOR : MICHAEL.KNIGHT1"
0662: NOP "VISIT WWW.GTAUNITEDGANG.UCOZ.COM"

:NEWKEYPCC_157
wait 0
if
  Player.Defined($PLAYER_CHAR)
  Actor.Defined($PLAYER_ACTOR)
jf @NEWKEYPCC_157
if
  Player.Controllable($PLAYER_CHAR)
jf @NEWKEYPCC_157

:NEWKEYPCC_198
wait 0
if and
0AB0:   key_pressed 72
0AB0:   key_pressed 65
0AB0:   key_pressed 77
jf @NEWKEYPCC_198
03E6: remove_text_box
03E5: show_text_box 'C_ACTIVE'
0AA5: call 4427328 1 pop 1 3
wait 1500

:NEWKEYPCC_265
wait 0
if and
0AB0:   key_pressed 72
0AB0:   key_pressed 65
0AB0:   key_pressed 77
jf @NEWKEYPCC_265
03E6: remove_text_box
Player.Money($PLAYER_CHAR) += -250000
Actor.Armour($PLAYER_ACTOR) = -100
Actor.Health($PLAYER_ACTOR) = 10
03E5: show_text_box 'C_DEACTI'
wait 1500
jump @NEWKEYPCC_157

:NEWKEYPCC_349
wait 0
if and
0AB0:   key_pressed 87
0AB0:   key_pressed 65
0AB0:   key_pressed 78
jf @NEWKEYPCC_349
03E5: show_text_box 'C_ACTIVE'
0AA5: call 4427408 1 pop 1 4
wait 1500
jump @NEWKEYPCC_157

:NEWKEYPCC_421
wait 0
if and
0AB0:   key_pressed 67
0AB0:   key_pressed 87
0AB0:   key_pressed 76
jf @NEWKEYPCC_421
03E5: show_text_box 'C_ACTIVE'
0AA5: call 4427552 1 pop 1 5
jump @NEWKEYPCC_157

:NEWKEYPCC_488
wait 0
if and
0AB0:   key_pressed 83
0AB0:   key_pressed 87
0AB0:   key_pressed 76
jf @NEWKEYPCC_488
03E5: show_text_box 'C_ACTIVE'
0AA5: call 4427552 1 pop 1 66
jump @NEWKEYPCC_157

:NEWKEYPCC_555
wait 0
if and
0AB0:   key_pressed 83
0AB0:   key_pressed 87
jf @NEWKEYPCC_555
03E5: show_text_box 'C_ACTIVE'
0AA5: call 4427584 1 pop 1 6
jump @NEWKEYPCC_157

:NEWKEYPCC_618
wait 0
if and
0AB0:   key_pressed 86
0AB0:   key_pressed 83
0AB0:   key_pressed 87
jf @NEWKEYPCC_618
03E5: show_text_box 'C_ACTIVE'
0AA5: call 4427600 1 pop 1 7
jump @NEWKEYPCC_157

:NEWKEYPCC_685
wait 0
if and
0AB0:   key_pressed 79
0AB0:   key_pressed 67
0AB0:   key_pressed 87
jf @NEWKEYPCC_685
03E5: show_text_box 'C_ACTIVE'
0AA5: call 4427616 1 pop 1 8
jump @NEWKEYPCC_157


This post has been edited by MichaelKnight1 on Thursday, Apr 19 2012, 13:03
PM
  Top
 

 
ZAZ  
Posted: Thursday, Apr 19 2012, 16:49
Quote Post


Kernlochbohrer
Group Icon
Group: Members
Joined: Jan 10, 2005

eu.gif

Member Award




Please write the keypress names as comment behind their number
CODE
0AB0:   key_pressed 72//  h key


Bind your checks like a chain like in this Teleport lesson
study how i extended the simple script to a larger one
Users WebsitePM
  Top
 

 
MichaelKnight1  
Posted: Thursday, Apr 19 2012, 18:14
Quote Post


Snitch
Group Icon
Group: BUSTED!
Joined: Mar 24, 2012

us.gif

XXXXX



QUOTE (ZAZ @ Thursday, Apr 19 2012, 16:49)
Please write the keypress names as comment behind their number
CODE
0AB0:   key_pressed 72//  h key


Bind your checks like a chain like in this Teleport lesson
study how i extended the simple script to a larger one

Thanks Zaz is Work , I Will Continued For My Work ++ icon14.gif
PM
  Top
 

 
PangTongNinja  
Posted: Tuesday, Apr 24 2012, 03:39
Quote Post


Give me [$(20)$]
Group Icon
Group: Members
Joined: Apr 9, 2012

mars.gif

XXXXX



I want to teleport inside a building like...the hospital near G-street how do i get there?
PM
  Top
 

 
ZAZ  
Posted: Tuesday, Apr 24 2012, 04:48
Quote Post


Kernlochbohrer
Group Icon
Group: Members
Joined: Jan 10, 2005

eu.gif

Member Award




QUOTE (PangTongNinja @ Tuesday, Apr 24 2012, 03:39)
I want to teleport inside a building like...the hospital near G-street how do i get there?

read Teleport lesson
Users WebsitePM
  Top
 

 
SA-Modding  
Posted: Thursday, Apr 26 2012, 15:23
Quote Post


Grand Theft Auto Fan
Group Icon
Group: BUSTED!
Joined: Feb 29, 2012

gr.gif

XXXXX







This Post Have Been Sloved For personal reasons


This post has been edited by SA-Modding on Thursday, Apr 26 2012, 17:04
Users WebsitePMMSN
  Top
 

 
ZAZ  
Posted: Thursday, Apr 26 2012, 16:12
Quote Post


Kernlochbohrer
Group Icon
Group: Members
Joined: Jan 10, 2005

eu.gif

Member Award




Learn first writing normal scripts. Mission script is advanced coding and to execute much code. Atm. you really don't need this method because you can run several scenes in serie by writing one cs script.
Read the tutorial lessons careful, study and test the example scripts. Do that again and again.
I recomand to understand these lessons complete:

The first 6 chapters are written in this first post, below of the index
Chapterlesson
First Steps in Cleo scripting
with Sannybuilder
- Start for newbies
The Editor- The main functions
- Option: different view of the decompiled code
- Classes and Keywords
Data types- locals @, globals $, "strings '
and hash # to enter modelname
Scripting/Writing a Thread

coding in praxis,
a must-read for newbies
- Using conditional checks
- The IF - Variation
- Script structure simple
- Script structure extended
- Script exemble: Slowmotion
- Spawn a 3D model
- Placing cars by using parked_car_generator
Special Particularities in Cleo- enable_thread_saving
- special cleo global var
- Script Exemble by using Special Global Cleo Variable/ Store a car at any place
- Template for Cleo Mission Script
gosub ... to read a subscript- basic knowledge to understand mission scripts

Math coding

the lessons are in one post
- give access with math coding
- Access check with local variables
- Declare or not declare (first reason)
- Time check for milliseconds in real time
- Time check for game hours
- Integer values and floating points
- Declare or not declare (second reason)
- Integer to float and reversed
- Show the calculated values with text_draw opcode
- Math calculations
Users WebsitePM
  Top
 

 
SA-Modding  
Posted: Thursday, Apr 26 2012, 16:19
Quote Post


Grand Theft Auto Fan
Group Icon
Group: BUSTED!
Joined: Feb 29, 2012

gr.gif

XXXXX







This Post Have Been Sloved For personal reasons


This post has been edited by SA-Modding on Thursday, Apr 26 2012, 17:04
Users WebsitePMMSN
  Top
 

 
ZAZ  
Posted: Thursday, Apr 26 2012, 16:58
Quote Post


Kernlochbohrer
Group Icon
Group: Members
Joined: Jan 10, 2005

eu.gif

Member Award




QUOTE (SA-Modding @ Thursday, Apr 26 2012, 16:19)
ZAZ I Knew

Then tell me how to use opcode 0AB3: and 0AB4:
Users WebsitePM
  Top
 

 
SA-Modding  
Posted: Thursday, Apr 26 2012, 17:01
Quote Post


Grand Theft Auto Fan
Group Icon
Group: BUSTED!
Joined: Feb 29, 2012

gr.gif

XXXXX



QUOTE (ZAZ @ Thursday, Apr 26 2012, 16:58)
QUOTE (SA-Modding @ Thursday, Apr 26 2012, 16:19)
ZAZ I Knew

Then tell me how to use opcode 0AB3: and 0AB4:

loool lol.gif ok zaz do not worry no problem and goodbye

This post has been edited by SA-Modding on Thursday, Apr 26 2012, 17:06
Users WebsitePMMSN
  Top
 

 
SA-Modding  
Posted: Thursday, Apr 26 2012, 19:04
Quote Post


Grand Theft Auto Fan
Group Icon
Group: BUSTED!
Joined: Feb 29, 2012

gr.gif

XXXXX



lol.gif lol.gif lol.gif I Fix The Problem And I found it very funny Just To Compile it To Cleo Mission Loool , Sorry Zaz And Goodbye inlove.gif
Users WebsitePMMSN
  Top
 

 
SilentPL  
Posted: Thursday, Apr 26 2012, 19:14
Quote Post


Senior File Manager
Group Icon
Group: Members
Joined: Feb 1, 2010

pl.gif

Member Award




You still doing it, Ahmed.
Users WebsitePMMSNXbox Live
  Top
 

 
/!\ErManu/!\  
Posted: Friday, May 4 2012, 14:15
Quote Post


/!\Custom Cars/!\
Group Icon
Group: Members
Joined: Jun 25, 2008

es.gif

XXXXX




Hello Zaz!!

I can use the codes of this tuturials as reference for my mods?

Thanks!!,good work!! wink.gif
PM
  Top
 

 
ZAZ  
Posted: Friday, May 4 2012, 17:54
Quote Post


Kernlochbohrer
Group Icon
Group: Members
Joined: Jan 10, 2005

eu.gif

Member Award




QUOTE (/!\ErManu/!\ @ Friday, May 4 2012, 22:15)
Hello Zaz!!

I can use the codes of this tuturials as reference for my mods?

Thanks!!,good work!! wink.gif

Please add the info that you got it from the tutorial and add the link to tutorial:
http://www.gtaforums.com/index.php?showtopic=403594

if you wanna use the CARSTORE script then add the info that it is from me and add this link:
CODE
http://www.gtaforums.com/index.php?showtopic=403594&st=0#Global

Users WebsitePM
  Top
 

 
/!\ErManu/!\  
Posted: Saturday, May 5 2012, 12:32
Quote Post


/!\Custom Cars/!\
Group Icon
Group: Members
Joined: Jun 25, 2008

es.gif

XXXXX



QUOTE (ZAZ @ Friday, May 4 2012, 17:54)
QUOTE (/!\ErManu/!\ @ Friday, May 4 2012, 22:15)
Hello Zaz!!

I can use the codes of this tuturials as reference for my mods?

Thanks!!,good work!! wink.gif

Please add the info that you got it from the tutorial and add the link to tutorial:
http://www.gtaforums.com/index.php?showtopic=403594

if you wanna use the CARSTORE script then add the info that it is from me and add this link:
CODE
http://www.gtaforums.com/index.php?showtopic=403594&st=0#Global

Very thanks you!!,and of course cool.gif icon14.gif

If I release a mod put this information and your name in my credits cookie.gif

I'm working on a new mods for GTA SA,for more interiors and real things,is a little project,I have a new interiors and details,new interiors of a passengers plane,mmm...new shops,and garages smile.gif made by me biggrin.gif

But made a Cleo code is very dificult for me and a veryyy lost of time.... nervous.gif I made a simple Cleo codes but Cleo codes more bigs... suicidal.gif

Thanks ZAZ!!
PM
  Top
 

 
rafik1998  
Posted: Friday, Jun 22 2012, 14:00
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Nov 16, 2011

XXXXX



Hello, anybody can make 1 script from this scripts?
http://gta3.iinaa.net/jpg/mod/cleo/move_object.zip
http://zazmahall.de/ZAZGTASANATORIUM/zazmo...ball-soccer.htm
i want to CJ can move up, and play the ball built-in map, not from script.
i tried this, but this doesnt work. I would like does it work in SAMP
Sorry for my bad english
PM
  Top
 

 

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)

0 Members:

Pages: (31) « First ... 18 19 [20] 21 22 ... Last »

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG