GTA Mods Mania
Welcome to GTA Mods Mania
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.
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)

Page 2 of 2 Previous  1, 2

View previous topic View next topic Go down

Re: Color Switch Mod (CLEO)

Post by Ashwin on 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...

Ashwin
Modders
Modders

Posts : 30
Join date : 2012-12-03

Back to top Go down

Re: Color Switch Mod (CLEO)

Post by TheSpookyMan on 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..

<-- 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.. :)

_______________________
avatar
TheSpookyMan
Moderators
 Moderators

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

Back to top Go down

Re: Color Switch Mod (CLEO)

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

Next time better use the EDIT Button.

_______________________
[You must be registered and logged in to see this link.]
GTA MODS MANIA was founded on Thu Nov 22, 2012 7:57 am, and today it`s exactly 1674 days old. Until now 336 users wrote 6351 posts at 671 topics. You (Guest) wrote 0 posts since you registered ()
avatar
TheGodfather
Administrator
Administrator

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

http://gtamodsmania.cz.cc/

Back to top Go down

Re: Color Switch Mod (CLEO)

Post by Ashwin on 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

Ashwin
Modders
Modders

Posts : 30
Join date : 2012-12-03

Back to top Go down

Re: Color Switch Mod (CLEO)

Post by TheSpookyMan on 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? :D

_______________________
avatar
TheSpookyMan
Moderators
 Moderators

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

Back to top Go down

Re: Color Switch Mod (CLEO)

Post by Ashwin on 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!

Ashwin
Modders
Modders

Posts : 30
Join date : 2012-12-03

Back to top Go down

Re: Color Switch Mod (CLEO)

Post by TheGodfather on 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.

_______________________
[You must be registered and logged in to see this link.]
GTA MODS MANIA was founded on Thu Nov 22, 2012 7:57 am, and today it`s exactly 1674 days old. Until now 336 users wrote 6351 posts at 671 topics. You (Guest) wrote 0 posts since you registered ()
avatar
TheGodfather
Administrator
Administrator

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

http://gtamodsmania.cz.cc/

Back to top Go down

Re: Color Switch Mod (CLEO)

Post by TheSpookyMan on 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. :D

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

_______________________
avatar
TheSpookyMan
Moderators
 Moderators

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

Back to top Go down

Re: Color Switch Mod (CLEO)

Post by Ashwin on 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,

Ashwin
Modders
Modders

Posts : 30
Join date : 2012-12-03

Back to top Go down

Re: Color Switch Mod (CLEO)

Post by TheGodfather on 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. :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

_______________________
[You must be registered and logged in to see this link.]
GTA MODS MANIA was founded on Thu Nov 22, 2012 7:57 am, and today it`s exactly 1674 days old. Until now 336 users wrote 6351 posts at 671 topics. You (Guest) wrote 0 posts since you registered ()
avatar
TheGodfather
Administrator
Administrator

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

http://gtamodsmania.cz.cc/

Back to top Go down

Re: Color Switch Mod (CLEO)

Post by TheSpookyMan on 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..:D

_______________________
avatar
TheSpookyMan
Moderators
 Moderators

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

Back to top Go down

Re: Color Switch Mod (CLEO)

Post by Ashwin on 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 ?

Ashwin
Modders
Modders

Posts : 30
Join date : 2012-12-03

Back to top Go down

Re: Color Switch Mod (CLEO)

Post by TheSpookyMan on 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.  

_______________________
avatar
TheSpookyMan
Moderators
 Moderators

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

Back to top Go down

Re: Color Switch Mod (CLEO)

Post by Ashwin on 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,

Ashwin
Modders
Modders

Posts : 30
Join date : 2012-12-03

Back to top Go down

Re: Color Switch Mod (CLEO)

Post by TheSpookyMan on 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..

_______________________
avatar
TheSpookyMan
Moderators
 Moderators

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

Back to top Go down

Re: Color Switch Mod (CLEO)

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


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.

_______________________
[You must be registered and logged in to see this link.]
GTA MODS MANIA was founded on Thu Nov 22, 2012 7:57 am, and today it`s exactly 1674 days old. Until now 336 users wrote 6351 posts at 671 topics. You (Guest) wrote 0 posts since you registered ()
avatar
TheGodfather
Administrator
Administrator

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

http://gtamodsmania.cz.cc/

Back to top Go down

Re: Color Switch Mod (CLEO)

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

Thegodfather wrote:This kind of attitude won't help you spooky
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
@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.

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

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


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

_______________________
avatar
TheSpookyMan
Moderators
 Moderators

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

Back to top Go down

Re: Color Switch Mod (CLEO)

Post by Sponsored content


Sponsored content


Back to top Go down

Page 2 of 2 Previous  1, 2

View previous topic View next topic Back to top

- Similar topics

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