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 GTA Modification Forums

Please post mod releases in the Mod Showroom

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: (3) [1] 2 3   ( Go to first unread post ) Reply to this topicStart new topicStart Poll

 How To Make A Cleo Files ?

 help
 
Police Media  
Posted: Monday, Mar 5 2012, 12:02
Quote Post


Police Ritor
Group Icon
Group: Members
Joined: Feb 29, 2012

XXXXX



Hi guys i have the code of cleo but i dont know how to make it .cs file any1 can ?


the code ::


CODE

:0
wait 0
if
0AB0:  key_pressed 48    //------ use '96' for numpad 0
jf @0
0729: AS_actor $PLAYER_ACTOR hold_cellphone 1
wait 193000
0729: AS_actor $PLAYER_ACTOR hold_cellphone 0
jump @0


and how i add mp4 to listen the calling > please replllllllllllllyyyy !! suicidal.gif suicidal.gif
Users WebsitePM
  Top
 

 
Ashwin the new boy  
Posted: Monday, Mar 5 2012, 14:40
Quote Post


I am The Most Confused Person
Group Icon
Group: Members
Joined: Nov 14, 2010

ia.gif

XXXXX



just use {$cleo} at the top & compile,
CODE

{$cleo .cs}
thread 'Ashwin'      // you can use NOP also

:0
wait 0
if
0AB0:  key_pressed 48    //------ use '96' for numpad 0
jf @0
0729: AS_actor $PLAYER_ACTOR hold_cellphone 1
wait 193000
0729: AS_actor $PLAYER_ACTOR hold_cellphone 0
jump @0

press F6 to compile, & SB will create a .cs file,
Users WebsitePM
  Top
 

 
Police Media  
Posted: Monday, Mar 5 2012, 15:22
Quote Post


Police Ritor
Group Icon
Group: Members
Joined: Feb 29, 2012

XXXXX



thanks alooot but where i put the mp3 ? confused.gif
Users WebsitePM
  Top
 

 
Ashwin the new boy  
Posted: Monday, Mar 5 2012, 15:40
Quote Post


I am The Most Confused Person
Group Icon
Group: Members
Joined: Nov 14, 2010

ia.gif

XXXXX



put .mp3 file where ever you want,
then load & use it like this,
i am not sure but may be this works!
CODE

{$cleo .cs}
thread 'Ashwin'
0AAC: 0@ = load_mp3 "audio\Phone.mp3"   //<-- the address of your mp3 file

:0
wait 0
if
0AB0:  key_pressed 48
jf @0
0729: AS_actor $PLAYER_ACTOR hold_cellphone 1
0AAD: set_mp3 0@ perform_action 1   //<--------------- i hope this opcode plays the mp3 file
0AAF: 1@ = get_mp3_length 0@
wait 1@   //<--------- if you use this then you don't have to calculate for length
0729: AS_actor $PLAYER_ACTOR hold_cellphone 0
jump @0


good luck!
Users WebsitePM
  Top
 

 
Police Media  
Posted: Monday, Mar 5 2012, 16:44
Quote Post


Police Ritor
Group Icon
Group: Members
Joined: Feb 29, 2012

XXXXX



the mp3 in cleo > mp3

so its will be like this?


CODE

{$cleo .cs}
thread 'Ashwin'
0AAC: 0@ = load_mp3 "cleo\mp3\1.mp3"  //<-- the address of your mp3 file

:0
wait 0
if
0AB0:  key_pressed 48
jf @0
0729: AS_actor $PLAYER_ACTOR hold_cellphone 1
0AAD: set_mp3 0@ perform_action 1   //<--------------- i hope this opcode plays the mp3 file
0AAF: 1@ = get_mp3_length 0@
wait 1@   //<--------- if you use this then you don't have to calculate for length
0729: AS_actor $PLAYER_ACTOR hold_cellphone 0
jump @0



and the phone not showing up in the game nervous.gif

This post has been edited by Police Media on Monday, Mar 5 2012, 16:46
Users WebsitePM
  Top
 

 
Ashwin the new boy  
Posted: Monday, Mar 5 2012, 16:58
Quote Post


I am The Most Confused Person
Group Icon
Group: Members
Joined: Nov 14, 2010

ia.gif

XXXXX



yes!
load model 330 before it,
#CELLPHONE
i thought you know how to load models,
but na..
i hope you know how to get the address of any file,,,

CODE

{$cleo .cs}
thread 'Ashwin'
0AAC: 0@ = load_mp3 "phone.mp3"  //<-- the address of your mp3 file should be in " "
model.load(330)
038B: load_requested_models

:0
wait 0
if and
model.available(330)
0AB0:  key_pressed 48
jf @0
0729: AS_actor $PLAYER_ACTOR hold_cellphone 1
0AAD: set_mp3 0@ perform_action 1
0AAF: 1@ = get_mp3_length 0@
wait 1@
0729: AS_actor $PLAYER_ACTOR hold_cellphone 0
jump @0


This post has been edited by Ashwin the new boy on Tuesday, Mar 6 2012, 11:58
Users WebsitePM
  Top
 

 
Police Media  
Posted: Monday, Mar 5 2012, 17:32
Quote Post


Police Ritor
Group Icon
Group: Members
Joined: Feb 29, 2012

XXXXX



i cant understand you >>>

how to load it ?

and i try it the mp3 not working
Users WebsitePM
  Top
 

 
Police Media  
Posted: Tuesday, Mar 6 2012, 11:31
Quote Post


Police Ritor
Group Icon
Group: Members
Joined: Feb 29, 2012

XXXXX



reply please sad.gif
Users WebsitePM
  Top
 

 
Police Media  
Posted: Wednesday, Mar 7 2012, 15:24
Quote Post


Police Ritor
Group Icon
Group: Members
Joined: Feb 29, 2012

XXXXX



moto_whistle.gif
Users WebsitePM
  Top
 

 
Michael.Knight1  
Posted: Wednesday, Mar 7 2012, 16:54
Quote Post


Knight Rider
Group Icon
Group: BUSTED!
Joined: Dec 15, 2011

us.gif

XXXXX



QUOTE (Police Media @ Wednesday, Mar 7 2012, 15:24)
moto_whistle.gif

USE 0729 To Play and Stop biggrin.gif
CODE
perform_action 1
To Start use 1 or 2 or 3 to load Repeatedly
CODE
perform_action 0
To Stop Use 0

That's My Own Script

CODE

{$CLEO .cs}
thread 'Michael'
0AAC: 0@ = load_audiostream "CLEO\playlist\PHONE1.mp3"
0AAC: 1@ = load_audiostream "CLEO\playlist\PHONE2.mp3"
Model.Load(#CELLPHONE)

:Michael_10
0001: wait 0 ms
00D6: if
0256:   player $PLAYER_CHAR defined
jf @Michael_10
if
 $ONMISSION == 0
jf @Michael_10
0001: wait 0 ms
if and
0AB0:  key_pressed 50 // Press 1 in your keyboard
jf @Michael_10

:Michael_211
0001: wait 0 ms
if and
  Model.Available(#CELLPHONE)
jf @Michael_211
0AAD: set_audiostream 1@ perform_action 1
0001: wait 100 ms
0729: AS_actor $PLAYER_ACTOR hold_cellphone 1
0AAD: set_audiostream 1@ perform_action 0
0001: wait 100 ms
0AAD: set_audiostream 2@ perform_action 1
wait 5000
0729: AS_actor $PLAYER_ACTOR hold_cellphone 0
jump @Michael_10


man what's you from confused.gif

This post has been edited by Michael.Knight1 on Wednesday, Mar 7 2012, 16:56
Users WebsitePMMSNAOLYahooXbox LivePlayStation Network
  Top
 

 
Joni2030  
Posted: Wednesday, Mar 7 2012, 17:37
Quote Post


Prankster
Group Icon
Group: Members
Joined: Jul 6, 2011

sf.gif

XXXXX



Always before I start coding I put these to SB {$VERSION 3.1.0027}
{$CLEO .cs}


//-------------MAIN---------------- every time after that I start coding but this is my way
Users WebsitePM
  Top
 

 
The_Sorrow  
Posted: Wednesday, Mar 7 2012, 17:50
Quote Post


Heaven, I'm in heaven(8)
Group Icon
Group: Members
Joined: May 31, 2010

en.gif

XXXXX



QUOTE (Joni2030 @ Wednesday, Mar 7 2012, 17:37)
Always before I start coding I put these to SB {$VERSION 3.1.0027}
{$CLEO .cs}


//-------------MAIN---------------- every time after that I start coding but this is my way

If anybody is wanting to create a CLEO file (.cs) they must start there script with:

CODE
{$CLEO}


It is mandatory.

EDIT: Please, Police Media Don't double post, use the edit button instead


This post has been edited by The_Sorrow on Wednesday, Mar 7 2012, 17:52
Users WebsitePMMSN
  Top
 

 
Ashwin the new boy  
Posted: Thursday, Mar 8 2012, 08:41
Quote Post


I am The Most Confused Person
Group Icon
Group: Members
Joined: Nov 14, 2010

ia.gif

XXXXX



{$VERSION} is not necessary & used in decompiling purpose only!
it's is to know what is the version of our .ini by which we have decompiled the script,
so,
you can start scripting after putting {$cleo} at head,
{$CLEO} is to tell it is cleo,
we can use it like
{$CLEO .cs}, {$CLEO .cm}, etc. to compile our script in different extension,
otherwise SB will compile only in .scm

@joni
all the text start with "//' are for comments or massage only,
they are not used for compiling,

@M.K1
QUOTE
man what's you from

do you want to say
Where are you from ?

This post has been edited by Ashwin the new boy on Thursday, Mar 8 2012, 08:51
Users WebsitePM
  Top
 

 
The_Sorrow  
Posted: Thursday, Mar 8 2012, 09:16
Quote Post


Heaven, I'm in heaven(8)
Group Icon
Group: Members
Joined: May 31, 2010

en.gif

XXXXX



QUOTE (Ashwin the new boy @ Thursday, Mar 8 2012, 08:41)
{$CLEO} is to tell it is cleo,
we can use it like
{$CLEO .cs}, {$CLEO .cm}, etc. to compile our script in different extension,
otherwise SB will compile only in .scm

Ashwin, remember that {$CLEO.cm} is only to be used for custom missions in San Andreas, It isn't actually an extension for a newly made script.

This post has been edited by The_Sorrow on Thursday, Mar 8 2012, 09:32
Users WebsitePMMSN
  Top
 

 
Deji  
Posted: Thursday, Mar 8 2012, 11:27
Quote Post


Coding like a Rockstar!
Group Icon
Group: Members
Joined: Dec 24, 2007

ja.gif

XXXXX



And if you've already compiled without the {$CLEO} directive, you've overwritten your main.scm and script.img and your game will probably fail to run until you restore the originals.
Users WebsitePM
  Top
 

 
Police Media  
Posted: Thursday, Mar 8 2012, 12:31
Quote Post


Police Ritor
Group Icon
Group: Members
Joined: Feb 29, 2012

XXXXX



so ? witch 1 i use please give me a right code

my mp3 in cleo>mp3>1.mp3
Users WebsitePM
  Top
 

 
The_Sorrow  
Posted: Thursday, Mar 8 2012, 12:37
Quote Post


Heaven, I'm in heaven(8)
Group Icon
Group: Members
Joined: May 31, 2010

en.gif

XXXXX



Use Michael.Knight1's code that he provided just change the location of the sound files

So:

CODE
0AAC: 1@ = load_audiostream "CLEO\playlist\PHONE2.mp3"


Would be:

CODE
0AAC: 1@ = load_audiostream "CLEO\MP3\1.mp3"


Etc. Etc.
Users WebsitePMMSN
  Top
 

 
Police Media  
Posted: Thursday, Mar 8 2012, 14:37
Quote Post


Police Ritor
Group Icon
Group: Members
Joined: Feb 29, 2012

XXXXX



whats the code for num0 because i wont delete my WeatherMenu.cs ^_^
Users WebsitePM
  Top
 

 
Ashwin the new boy  
Posted: Thursday, Mar 8 2012, 15:34
Quote Post


I am The Most Confused Person
Group Icon
Group: Members
Joined: Nov 14, 2010

ia.gif

XXXXX



QUOTE
remember that {$CLEO.cm} is only to be used for custom missions in San Andreas,

oh! Really ?
Actually I join today!

@P Media
Do you want this ?
0 (numpad with Num Lock on) = 96
use it as
CODE

0AB0:  key_pressed 96

for more press 'F12' while using SB & open cleo 3 code library,
Users WebsitePM
  Top
 

 
The_Sorrow  
Posted: Thursday, Mar 8 2012, 15:34
Quote Post


Heaven, I'm in heaven(8)
Group Icon
Group: Members
Joined: May 31, 2010

en.gif

XXXXX



QUOTE (Police Media @ Thursday, Mar 8 2012, 14:37)
whats the code for num0 because i wont delete my WeatherMenu.cs ^_^

So you want to press number 0 on your keyboard instead of 1?

Use this:

CODE
{$CLEO .cs}
thread 'Michael'
0AAC: 0@ = load_audiostream "CLEO\playlist\PHONE1.mp3"
0AAC: 1@ = load_audiostream "CLEO\playlist\PHONE2.mp3"
Model.Load(#CELLPHONE)

:Michael_10
0001: wait 0 ms
00D6: if
0256:   player $PLAYER_CHAR defined
jf @Michael_10
if
$ONMISSION == 0
jf @Michael_10
0001: wait 0 ms
if and
0AB0:  key_pressed 48 //Press 0 in your keyboard
jf @Michael_10

:Michael_211
0001: wait 0 ms
if and
 Model.Available(#CELLPHONE)
jf @Michael_211
0AAD: set_audiostream 1@ perform_action 1
0001: wait 100 ms
0729: AS_actor $PLAYER_ACTOR hold_cellphone 1
0AAD: set_audiostream 1@ perform_action 0
0001: wait 100 ms
0AAD: set_audiostream 2@ perform_action 1
wait 5000
0729: AS_actor $PLAYER_ACTOR hold_cellphone 0
jump @Michael_10


Don't forget to change your sound files location

QUOTE
oh! Really ?
Actually I join today!


Yep, it is true


This post has been edited by The_Sorrow on Thursday, Mar 8 2012, 15:37
Users WebsitePMMSN
  Top
 

 

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

0 Members:

Pages: (3) [1] 2 3 

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



 
IMG IMG