GTA Mods Mania
Welcome to https://gtamodsmania.forumotion.com
To get the most benefits of the forums .Please register otherwise you
won't be able to view some important boards & topics.
We are sure you will enjoy after joining the site.


Join the forum, it's quick and easy

GTA Mods Mania
Welcome to https://gtamodsmania.forumotion.com
To get the most benefits of the forums .Please register otherwise you
won't be able to view some important boards & topics.
We are sure you will enjoy after joining the site.
GTA Mods Mania
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Affiliates
pic

pic

pic

!
Welcome to GTA Mods Mania Join us now to access all of our features. Once you join us, you can make any topic to talk in this forum, give the reputation of a fellow member, design your profile, and much more. If you already have an account, Login here. If don't create one, here.

Color Switch Mod (CLEO)

4 posters

Page 2 of 2 Previous  1, 2

Go down

Color Switch Mod (CLEO) - Page 2 Empty Re: Color Switch Mod (CLEO)

Post by Ashwin Sun Jun 23, 2013 6:22 pm

I have already given you the idea in my last post,
now make it & show me what you have wrote in cleo to do that,

your next post must contain the code or the probe,

waiting...
avatar
Ashwin
Modders
Modders

Posts : 30
Join date : 2012-12-03

Back to top Go down

Color Switch Mod (CLEO) - Page 2 Empty Re: Color Switch Mod (CLEO)

Post by TheSpookyMan Sun Jun 23, 2013 7:57 pm

Ok then Mr Ashwin train me like that i will really appreciate making cleo scripts for you that idea and i will come up with the script by tomorrow.. Color Switch Mod (CLEO) - Page 2 522858411

<-- merged post--> TheGodfather

Alright Mr Ashwin here goes my Script.
Code:
:NONE
wait 0 ms
if
00DF:   actor $PLAYER_ACTOR driving
jf @NONE
03C0: $2197 = actor $PLAYER_ACTOR car
jump @NONE_1

:NONE_1
wait 0 ms
if
01C1:   car $2197 stopped
jf @NONE_1
wait 5000 ms
02D4: car $2197($7257,2i) turn_off_engine
jump @NONE

Note: i dont know about what values there should be in the opcode 02D4 that part ($7257,2i) what is 2i and what is $7257 for. If i knew i would have given proper values to them.. and i don't know 1 ms means how much.. Color Switch Mod (CLEO) - Page 2 522858411:)
TheSpookyMan
TheSpookyMan
Moderators
 Moderators

Posts : 649
Join date : 2012-12-03
Age : 30
Location : Somewhere on Earth

Back to top Go down

Color Switch Mod (CLEO) - Page 2 Empty Re: Color Switch Mod (CLEO)

Post by TheGodfather Sun Jun 23, 2013 9:54 pm

Next time better use the EDIT Button.
TheGodfather
TheGodfather
Administrator
Administrator

Posts : 1360
Join date : 2012-11-22
Age : 28
Location : Unknown

http://gtamodsmania.cz.cc/

Back to top Go down

Color Switch Mod (CLEO) - Page 2 Empty Re: Color Switch Mod (CLEO)

Post by Ashwin Sun Jun 23, 2013 11:57 pm

Two things,
post script normally,
CODE is not visible to me,

try to make the script for VC,
Cuz VC is the only game i found im my laptop,
as PC is not working,

now,
if the script is doing the task i have given to you,
then I'll give you another idea but little harder this time,
of not then tell me the problem
avatar
Ashwin
Modders
Modders

Posts : 30
Join date : 2012-12-03

Back to top Go down

Color Switch Mod (CLEO) - Page 2 Empty Re: Color Switch Mod (CLEO)

Post by TheSpookyMan Mon Jun 24, 2013 11:25 am

:NONE
wait 0 ms
if
00DF: actor $PLAYER_ACTOR driving
jf @NONE
03C0: $2197 = actor $PLAYER_ACTOR car
jump @NONE_1

:NONE_1
wait 0 ms
if
01C1: car $2197 stopped
jf @NONE_1
wait 5000 ms
02D4: car $2197($7257,2i) turn_off_engine
jump @NONE

Here goes the script and this is for GTA SA... Atleast tell if its correct? Color Switch Mod (CLEO) - Page 2 522858411:D
TheSpookyMan
TheSpookyMan
Moderators
 Moderators

Posts : 649
Join date : 2012-12-03
Age : 30
Location : Somewhere on Earth

Back to top Go down

Color Switch Mod (CLEO) - Page 2 Empty Re: Color Switch Mod (CLEO)

Post by Ashwin Mon Jun 24, 2013 10:00 pm

What Admin told you about editing old post !

script will not crash but it will not perform the given task also,

lets start from the beginning,

# label should be named,
for example,
trigger, initial, etc.

# try to minimize the use of global variables,
use local variables for Small thread and CLEO scripts,

# no need to use jump opcode to jump to the next line,

now the main problem,
what will happen if car stoped and then move before 5 seconds,
the script will still turn off its engine after 5 seconds,
so, you need to keep checking the car movement for five seconds,

its time to use Timers,
the last two local variables are timers,
which means, their value will increase by one after every millisecond,

so, by using the timers,
the second part of your script should be something like this,

lets use @17 (VC), IDK that for SA, find it yourself.

:trigger
wait 0 ms
if
00DF: actor $PLAYER_ACTOR driving
jf @trigger
03C0: 0@ = actor $PLAYER_ACTOR car
17@ = 0

:check
wait 0 ms
if
01C1: car 0@ stopped
jf @end
if
17@ >= 5000
jf @check
02D4: car 0@ turn_off_engine

:end
car.removereference(0@)
wait 0
jump @trigger

the script is still not perfect but fine, (kaam chalau)
its not tested, i have just copied your text and edited it,
i am not sure if opcodes are VC compatible,

Now read and test the script and tell me if there us something that you didn't understand or if script is not working,

another thing,
don't upload or export any of the script that you gonna learn here,

as im on mobile, i am not sure about spell of opcodes,
and next time, show script for VC, so that i can test it!
avatar
Ashwin
Modders
Modders

Posts : 30
Join date : 2012-12-03

Back to top Go down

Color Switch Mod (CLEO) - Page 2 Empty Re: Color Switch Mod (CLEO)

Post by TheGodfather Mon Jun 24, 2013 10:02 pm

I haven't checked your script but still you deserve REP+ Ashwin for such a helping attitude towards members buddy.
TheGodfather
TheGodfather
Administrator
Administrator

Posts : 1360
Join date : 2012-11-22
Age : 28
Location : Unknown

http://gtamodsmania.cz.cc/

Back to top Go down

Color Switch Mod (CLEO) - Page 2 Empty Re: Color Switch Mod (CLEO)

Post by TheSpookyMan Mon Jun 24, 2013 10:14 pm

Yeah i also think he should be given REP + but i ve decided to make a new thread named "Cleo Training Centre" a thread where newbies will be evolved into professionals since this topic is getting offtopic. So i request Admin to grant me that permission.. Please reply Admin. Color Switch Mod (CLEO) - Page 2 522858411:D

:Note why is Ashwin's REP -1??
TheSpookyMan
TheSpookyMan
Moderators
 Moderators

Posts : 649
Join date : 2012-12-03
Age : 30
Location : Somewhere on Earth

Back to top Go down

Color Switch Mod (CLEO) - Page 2 Empty Re: Color Switch Mod (CLEO)

Post by Ashwin Mon Jun 24, 2013 10:31 pm

I have implemented such feature on my website,
Tuitions - for those who want to learn something from others,

i deserve that rep -1
bcuz after posting, i noticed a silly mistake in it,

@admin
edit post option is not available in mobile version of the website,
do something about it,
avatar
Ashwin
Modders
Modders

Posts : 30
Join date : 2012-12-03

Back to top Go down

Color Switch Mod (CLEO) - Page 2 Empty Re: Color Switch Mod (CLEO)

Post by TheGodfather Tue Jun 25, 2013 7:59 am

TheSpookyMan wrote:Yeah i also think he should be given REP + but i ve decided to make a new thread named "Cleo Training Centre" a thread where newbies will be evolved into professionals since this topic is getting offtopic. So i request Admin to grant me that permission.. Please reply Admin. Color Switch Mod (CLEO) - Page 2 522858411:D

:Note why is Ashwin's REP -1??

Sure you are allowed to create it mate thumbsup
And it's a bit strange why he got REP- I will fix it up.It must be a bug Razz
TheGodfather
TheGodfather
Administrator
Administrator

Posts : 1360
Join date : 2012-11-22
Age : 28
Location : Unknown

http://gtamodsmania.cz.cc/

Back to top Go down

Color Switch Mod (CLEO) - Page 2 Empty Re: Color Switch Mod (CLEO)

Post by TheSpookyMan Tue Jun 25, 2013 11:26 am

Ashwin wrote:# try to minimize the use of global variables,
use local variables for Small thread and CLEO scripts,

# no need to use jump opcode to jump to the next line,

Lastly i will say that Mr Ashwin i also know that we should not use Global variables in Cleo scripts only local variables. The only global variables to be used in Cleo scripts are $PLAYER_CHAR, $PLAYER_ACTOR and $ONMISSION. i have gone through ZAZ's Cleo tutorial from GTA forums and Mission Coding for Dummies by Dutchy of GTA forums. But still i could never update my skills. Hopefully i may now if you and the admin helps me..Color Switch Mod (CLEO) - Page 2 522858411:D
TheSpookyMan
TheSpookyMan
Moderators
 Moderators

Posts : 649
Join date : 2012-12-03
Age : 30
Location : Somewhere on Earth

Back to top Go down

Color Switch Mod (CLEO) - Page 2 Empty Re: Color Switch Mod (CLEO)

Post by Ashwin Tue Jun 25, 2013 12:41 pm

Dimak kharab yogya mera,
dus minute tak likha, post kiya to connection faild,
sorry, main vo sab dobara nahi likunga,

so, in short,

spooky,
stop talking about hope or thanks,
this is what i call off topic,

@global vars,
use them only when you need to pass any value or handle to any other thread or script,

@script
is the script is working good ?
did you figure out the mistake i was talking about ?

@progress
did you get the timer thing correctly ?
do you find the local var of timer for SA ?

Ready for next task ?
avatar
Ashwin
Modders
Modders

Posts : 30
Join date : 2012-12-03

Back to top Go down

Color Switch Mod (CLEO) - Page 2 Empty Re: Color Switch Mod (CLEO)

Post by TheSpookyMan Tue Jun 25, 2013 3:11 pm

Not yet! i am not ready ask me about that in my newly constructed thread name Cleo Training Centre. Color Switch Mod (CLEO) - Page 2 522858411  Color Switch Mod (CLEO) - Page 2 522858411
TheSpookyMan
TheSpookyMan
Moderators
 Moderators

Posts : 649
Join date : 2012-12-03
Age : 30
Location : Somewhere on Earth

Back to top Go down

Color Switch Mod (CLEO) - Page 2 Empty Re: Color Switch Mod (CLEO)

Post by Ashwin Tue Jun 25, 2013 3:57 pm

my exams are running,
today physics exam is ****ed up,
do you think i have time to go there and ask you again ?

you are not looking serious,
and now i think i am just wasting my time with you,

do you even look at what i have posted?

i try to explain you as much as i could in my long posts,
and what i see in reply is
just a off topic thing,
every time.

i have already ask the admin to use this topic for that purpose,
avatar
Ashwin
Modders
Modders

Posts : 30
Join date : 2012-12-03

Back to top Go down

Color Switch Mod (CLEO) - Page 2 Empty Re: Color Switch Mod (CLEO)

Post by TheSpookyMan Tue Jun 25, 2013 4:45 pm

Yes i have gone through whatever you said and i have made the script there accordingly. This is Mod Showroom not Modding Discussion and i don't think anyone has to prolong this topic. And you are talking about time. Well how much time does it take to click a button not even a second..If you want to help this way then sorry i cannot negotiate with you further.  angry
You don't need to ask anything cause i have given the answer to what you've asked me further if you want to ask, ask there..
TheSpookyMan
TheSpookyMan
Moderators
 Moderators

Posts : 649
Join date : 2012-12-03
Age : 30
Location : Somewhere on Earth

Back to top Go down

Color Switch Mod (CLEO) - Page 2 Empty Re: Color Switch Mod (CLEO)

Post by TheGodfather Tue Jun 25, 2013 6:40 pm

Color Switch Mod (CLEO) - Page 2 3016132225
This kind of attitude won't help you spooky Razz
Now better take your chat to the [You must be registered and logged in to see this link.]
Ashwin is trying to help you so cooperate with him thumbsup
@Ashwin: I have rep+ you ;)ffor your help towards others.
Try to complete what Ashwin told you spooky.
No more off-topic or the topic would be closed.  

No need to reply.
TheGodfather
TheGodfather
Administrator
Administrator

Posts : 1360
Join date : 2012-11-22
Age : 28
Location : Unknown

http://gtamodsmania.cz.cc/

Back to top Go down

Color Switch Mod (CLEO) - Page 2 Empty Re: Color Switch Mod (CLEO)

Post by TheSpookyMan Wed Jun 26, 2013 4:02 pm

Thegodfather wrote:This kind of attitude won't help you spooky Color Switch Mod (CLEO) - Page 2 Icon_razz
Now better take your chat to the [You must be registered and logged in to see this link.]
Ashwin is trying to help you so cooperate with him Color Switch Mod (CLEO) - Page 2 609226038
@Ashwin: I have rep+ you ;)ffor your help towards others.
Try to complete what Ashwin told you spooky.
No more off-topic or the topic would be closed.  

No need to reply.

Admin you named this section Mod Showroom and that Ashwin is using it as a Modding Discussion(Are you SO blind that you can't even see that this is against the forum rules). I am not wrong here Admin you are wrong. Color Switch Mod (CLEO) - Page 2 522858411

@Ashwin Everything here is off topic except for my Mod. I also don't care what exams you have given the fact is that you are in a forums and you will have to act according to its rules and regulations.. Color Switch Mod (CLEO) - Page 2 3467838000

Also Do you remember my topic "Very Interesting : Must READ" in GTA Forums. you locked it(means Had it Locked) ,Why? because it was against the rules and Regulations of GTA Forums and what you are doing here now is against the rules and regulations of this site. The Admin may be a fool to realize this but i am not. You can say i am taking Revenge for that topic in GTA F.. Color Switch Mod (CLEO) - Page 2 522858411


Last edited by TheSpookyMan on Mon Jul 01, 2013 2:54 pm; edited 1 time in total (Reason for editing : To avoid Double Posting!)
TheSpookyMan
TheSpookyMan
Moderators
 Moderators

Posts : 649
Join date : 2012-12-03
Age : 30
Location : Somewhere on Earth

Back to top Go down

Color Switch Mod (CLEO) - Page 2 Empty Re: Color Switch Mod (CLEO)

Post by Sponsored content


Sponsored content


Back to top Go down

Page 2 of 2 Previous  1, 2

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum