Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
      4. Frontier Pursuits
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Diamond Casino & Resort
      2. DLC
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA 6

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA IV Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA SA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA VC Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA III Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

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

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

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

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

    2. Forum Support

    3. Site Suggestions

Sign in to follow this  
Police Media

How To Make A Cleo Files ?

Recommended Posts

Police Media

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

 

 

the code ::

 

 

 

:0wait 0if0AB0:  key_pressed 48    //------ use '96' for numpad 0jf @00729: AS_actor $PLAYER_ACTOR hold_cellphone 1 wait 1930000729: AS_actor $PLAYER_ACTOR hold_cellphone 0 jump @0

 

 

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

Share this post


Link to post
Share on other sites
Ashwin.Star

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

 

{$cleo .cs}thread 'Ashwin'      // you can use NOP also:0wait 0if0AB0:  key_pressed 48    //------ use '96' for numpad 0jf @00729: AS_actor $PLAYER_ACTOR hold_cellphone 1 wait 1930000729: AS_actor $PLAYER_ACTOR hold_cellphone 0 jump @0

 

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

Share this post


Link to post
Share on other sites
Police Media

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

Share this post


Link to post
Share on other sites
Ashwin.Star

put .mp3 file where ever you want,

then load & use it like this,

i am not sure but may be this works!

 

{$cleo .cs}thread 'Ashwin'0AAC: [email protected] = load_mp3 "audio\Phone.mp3"   //<-- the address of your mp3 file:0wait 0if0AB0:  key_pressed 48jf @00729: AS_actor $PLAYER_ACTOR hold_cellphone 1 0AAD: set_mp3 [email protected] perform_action 1   //<--------------- i hope this opcode plays the mp3 file0AAF: [email protected] = get_mp3_length [email protected] [email protected]   //<--------- if you use this then you don't have to calculate for length0729: AS_actor $PLAYER_ACTOR hold_cellphone 0 jump @0

 

 

good luck!

Share this post


Link to post
Share on other sites
Police Media

the mp3 in cleo > mp3

 

so its will be like this?

 

 

 

{$cleo .cs}thread 'Ashwin'0AAC: [email protected] = load_mp3 "cleo\mp3\1.mp3"  //<-- the address of your mp3 file:0wait 0if0AB0:  key_pressed 48jf @00729: AS_actor $PLAYER_ACTOR hold_cellphone 1 0AAD: set_mp3 [email protected] perform_action 1   //<--------------- i hope this opcode plays the mp3 file0AAF: [email protected] = get_mp3_length [email protected] [email protected]   //<--------- if you use this then you don't have to calculate for length0729: AS_actor $PLAYER_ACTOR hold_cellphone 0 jump @0

 

 

 

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

Edited by Police Media

Share this post


Link to post
Share on other sites
Ashwin.Star

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,,,

 

 

{$cleo .cs}thread 'Ashwin'0AAC: [email protected] = load_mp3 "phone.mp3"  //<-- the address of your mp3 file should be in " "model.load(330)038B: load_requested_models :0wait 0if andmodel.available(330)0AB0:  key_pressed 48jf @00729: AS_actor $PLAYER_ACTOR hold_cellphone 1 0AAD: set_mp3 [email protected] perform_action 10AAF: [email protected] = get_mp3_length [email protected] [email protected]: AS_actor $PLAYER_ACTOR hold_cellphone 0 jump @0

 

Edited by Ashwin the new boy

Share this post


Link to post
Share on other sites
Police Media

i cant understand you >>>

 

how to load it ?

 

and i try it the mp3 not working

Share this post


Link to post
Share on other sites
Police Media

reply please sad.gif

Share this post


Link to post
Share on other sites
Police Media

Share this post


Link to post
Share on other sites
Michael.Knight1

 

moto_whistle.gif

USE 0729 To Play and Stop biggrin.gif

 

perform_action 1

To Start use 1 or 2 or 3 to load Repeatedly

 

perform_action 0

To Stop Use 0

 

That's My Own Script

 

 

{$CLEO .cs}thread 'Michael' 0AAC: [email protected] = load_audiostream "CLEO\playlist\PHONE1.mp3" 0AAC: [email protected] = load_audiostream "CLEO\playlist\PHONE2.mp3" Model.Load(#CELLPHONE):Michael_100001: wait 0 ms 00D6: if 0256:   player $PLAYER_CHAR defined jf @Michael_10 if  $ONMISSION == 0 jf @Michael_100001: wait 0 ms if and0AB0:  key_pressed 50 // Press 1 in your keyboardjf @Michael_10 :Michael_2110001: wait 0 ms if and  Model.Available(#CELLPHONE)jf @Michael_211 0AAD: set_audiostream [email protected] perform_action 10001: wait 100 ms 0729: AS_actor $PLAYER_ACTOR hold_cellphone 1 0AAD: set_audiostream [email protected] perform_action 00001: wait 100 ms 0AAD: set_audiostream [email protected] perform_action 1wait 5000 0729: AS_actor $PLAYER_ACTOR hold_cellphone 0 jump @Michael_10

 

 

man what's you from confused.gif

Edited by Michael.Knight1

Share this post


Link to post
Share on other sites
Joni2030

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

Share this post


Link to post
Share on other sites
Node

 

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:

 

 

{$CLEO}

 

 

It is mandatory.

 

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

Edited by The_Sorrow

Share this post


Link to post
Share on other sites
Ashwin.Star

{$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

 

man what's you from

do you want to say

Where are you from ?

Edited by Ashwin the new boy

Share this post


Link to post
Share on other sites
Node

 

{$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.

Edited by The_Sorrow

Share this post


Link to post
Share on other sites
Deji

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.

Share this post


Link to post
Share on other sites
Police Media

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

 

my mp3 in cleo>mp3>1.mp3

Share this post


Link to post
Share on other sites
Node

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

 

So:

 

 

0AAC: [email protected] = load_audiostream "CLEO\playlist\PHONE2.mp3"

 

 

Would be:

 

 

0AAC: [email protected] = load_audiostream "CLEO\MP3\1.mp3"

 

 

Etc. Etc.

Share this post


Link to post
Share on other sites
Police Media

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

Share this post


Link to post
Share on other sites
Ashwin.Star

 

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

 

0AB0:  key_pressed 96

 

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

Share this post


Link to post
Share on other sites
Node

 

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:

 

 

{$CLEO .cs}thread 'Michael' 0AAC: [email protected] = load_audiostream "CLEO\playlist\PHONE1.mp3" 0AAC: [email protected] = load_audiostream "CLEO\playlist\PHONE2.mp3" Model.Load(#CELLPHONE):Michael_100001: wait 0 ms 00D6: if 0256:   player $PLAYER_CHAR defined jf @Michael_10 if $ONMISSION == 0 jf @Michael_100001: wait 0 ms if and0AB0:  key_pressed 48 //Press 0 in your keyboardjf @Michael_10 :Michael_2110001: wait 0 ms if and Model.Available(#CELLPHONE)jf @Michael_211 0AAD: set_audiostream [email protected] perform_action 10001: wait 100 ms 0729: AS_actor $PLAYER_ACTOR hold_cellphone 1 0AAD: set_audiostream [email protected] perform_action 00001: wait 100 ms 0AAD: set_audiostream [email protected] perform_action 1wait 5000 0729: AS_actor $PLAYER_ACTOR hold_cellphone 0 jump @Michael_10

 

 

Don't forget to change your sound files location

 

 

oh! Really ?

Actually I join today!

 

Yep, it is true

Edited by The_Sorrow

Share this post


Link to post
Share on other sites
Ashwin.Star

@sorrow

thanks for make me correct,

because i was reading "Joined: Nov 14, 2010" near my Avatar by mistake, ha ha

anyway,

Why don't you use if and instead of using so much conditions ?

Share this post


Link to post
Share on other sites
Node

 

@sorrow

thanks for make me correct,

because i was reading "Joined: Nov 14, 2010" near my Avatar by mistake, ha ha

anyway,

Why don't you use if and instead of using so much conditions ?

Its fine, I wasn't writing the script from scratch, If the code already works and a small change is needed I wasn't going to mess with it anymore

Edited by The_Sorrow

Share this post


Link to post
Share on other sites
Police Media

The_Sorrow

 

 

your code not working

 

 

 

Ashwin the new boy

 

 

your code working without sounds xD

Share this post


Link to post
Share on other sites
Node

This code should work now, just make sure to correctly define your MP3 file location!

 

 

{$CLEO}0000:0AAC: [email protected] = load_audiostream "CLEO\playlist\01.mp3"model.load(330)038B: load_requested_models :0wait 0if andmodel.available(330)0AB0:  key_pressed 0x30 // Press 0 on your keyboardjf @00729: AS_actor $PLAYER_ACTOR hold_cellphone 1 0AAD: set_mp3 [email protected] perform_action 10AAF: [email protected] = get_mp3_length [email protected] [email protected]: AS_actor $PLAYER_ACTOR hold_cellphone 0 jump @0

 

Edited by The_Sorrow

Share this post


Link to post
Share on other sites
Ashwin.Star

you may put the file in root dir & just write the name of mp3 file,

Share this post


Link to post
Share on other sites
Police Media

works but only 5 secs calling !

 

i need it 3 minutes and 13 secounds

Share this post


Link to post
Share on other sites
Node
works but only 5 secs calling !

 

i need it 3 minutes and 13 secounds

My code?

 

Thats because the sound file is only 5 seconds long.

Share this post


Link to post
Share on other sites
Police Media

no , the sound still on but the phone only 5 secs

Share this post


Link to post
Share on other sites
LINK/2012

get_mp3_length returns seconds, the wait wants miliseconds.

Share this post


Link to post
Share on other sites
Node

 

no , the sound still on but the phone only 5 secs

{$CLEO}0000:0AAC: [email protected] = load_audiostream "CLEO\playlist\01.mp3"model.load(330)038B: load_requested_models :0wait 0if andmodel.available(330)0AB0:  key_pressed 0x30 // Press 0 on your keyboardjf @00729: AS_actor $PLAYER_ACTOR hold_cellphone 1 0AAD: set_mp3 [email protected] perform_action 10AAF: [email protected] = get_mp3_length [email protected] 187800 <- 3 minutes and 13 seconds0729: AS_actor $PLAYER_ACTOR hold_cellphone 0 jump @0

 

 

How about now?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

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