[Update 1.0 - 2015.03.13] Emergency Lights CLEO script by nyolc8

Started by nyolc8, February 08, 2015, 13:59

nyolc8

New version 0.9.4
- fixed again the damn bug of opcode/crash when "/rm" or exploding vehicle.

DOWNLOAD

bazingashane0

Have you fixed the chat bug yet ? When your typing while in a vehicle that is not configured to the script it throughs up opcodes for when your press the keys for the lights

Quote from: mick88 on January 17, 2012, 08:10
You got your money for arrest, and he's out so you can arrest him again. You mad?

nyolc8

I didn't even know there is a bug with this, I'll look into it.

edit: I don't get that bug, also there is no code in the script which would related to non-configured vehicles there. The SAMP chat checking in the script is before any vehicle checking. So I don't know why you getting opcode on non-configured vehicles. :-\

SpazzBucket.

I don't have that either Shane, its probably one of the per person bugs, like my icon not going away xD
"The more you fail, the more you know.
When you lose you then try to gain.
The best lessons are learnt through pain"
Quote from: HoboHobo [30 Jan 20:40]:   "Since I don't do that whole guy thing" .... Ok guys, pack up the lemonade stand, she's not interested.
[hide=Alyssa White-Glutz hottest woman in metal]http://[/hide]
[hide=Lzzy Hale][/hide]
[hide=Renee Phoenix][/hide]
[hide=Good one Stteve]
Quote from: SpazzbucketI suddenly feel very smart
Quote from: StteveYou're extremely smart all the time, it just explodes sometimes
Quote from: StteveSo we're volcanoes
[/hide][hide=Other true/clever quotes]
Quote from: Sjomp on May 04, 2014, 18:54
It doesn't matter how much people are online it's about how much fun you have.
Quote from: braneNext time don't use any porn site to upload pictures. Imgur or Imageshack would be fine. Its not nice to see cocks around while checking the image you came for.
Quote from: TheSandmanBan looks fair. its pathetic when people attack females just because they play an online game, wow.
Quote from: TheSandmanRap is like scissors, it always loses to rock
Quote from: HoboProvoking doesn't brake rules, but it does break them.

Remember to brake for moose so you don't break your car.
[/hide]
[hide=Konali's motto]
Quote from: Konali on January 12, 2014, 16:41I only had one rule in my head that i used in every situation: its a game, lets keep it that way.

Hobo

I'm using the most up to date version but when I cycle the advisory lights, they get stuck on the last one. They don't turn off. Wat do.


[tr]
[td]

[/td]
[td][/td]
[td]

[shadow=black,left]My PC Specs:
-AMD Ryzen 7 2700X
-EVGA RTX 3080
-ASUS Prime X470-Pro Motherboard
-CORSAIR Vengeance RGB PRO 32GB RAM
-ADATA SX8200 NVME SSD 960GB
-Seagate IronWolf Pro 8TB HDD
-Western Digital Blue 2TB HDD
-ADATA Ultimate SU800 2TB SDD x2
-ADATA Ultimate SU800 1TB SSD x2
-Corsair HX750 Professional PSU
-NZXT H440 white/black case
[/shadow]
[/td]
[/tr]
[/table]

bazingashane0

Quote from: nyolc8 on February 19, 2015, 10:39
I didn't even know there is a bug with this, I'll look into it.

edit: I don't get that bug, also there is no code in the script which would related to non-configured vehicles there. The SAMP chat checking in the script is before any vehicle checking. So I don't know why you getting opcode on non-configured vehicles. :-\
I will try your latest version then and see what happens :)

Quote from: mick88 on January 17, 2012, 08:10
You got your money for arrest, and he's out so you can arrest him again. You mad?

nyolc8

Quote from: Hobo on February 20, 2015, 06:12
I'm using the most up to date version but when I cycle the advisory lights, they get stuck on the last one. They don't turn off. Wat do.
If you set randomAdvisor.enable = 1 to 0 inside of CLEO\EL\emergency.ini then what happens? Maybe the random mode gets bugged....(?)

Quote from: bazingashane0 on February 20, 2015, 10:06
Quote from: nyolc8 on February 19, 2015, 10:39
I didn't even know there is a bug with this, I'll look into it.

edit: I don't get that bug, also there is no code in the script which would related to non-configured vehicles there. The SAMP chat checking in the script is before any vehicle checking. So I don't know why you getting opcode on non-configured vehicles. :-\
I will try your latest version then and see what happens :)
I think these bugs related to the used cleo version itself.

nyolc8

People who have problems with this (or with my other scripts), try these files, I use these, all files which related to cleo: http://speedy.sh/JNrtS/mycleo.zip

Of course, MAKE BACKUP first!

Marccc

I reinstalled the whole game, patched my game to v1.0, installed SAMP.
I can now join a samp server.


Then...


... I installed only CLEO4 and when i want to join a server i get this error:
Version Error
I can't determine your GTA version.
SA-MP only supports GTA:SA v1.0 USA/EU


When i add the file newOpcodes.cleo to the CLEO folder i get the error:
CLEO warning
Error loading plugin cleo/newOpcodes.cleo
and some seconds later i get again the error:

Version Error
I can't determine your GTA version.
SA-MP only supports GTA:SA v1.0 USA/EU


What is this for shit?

LAST SEEN
TOTAL TIME ON SERVER
SCORE
TRUCK LOADS
CONVOY SCORE
ACHIEVEMENTS
ARTIC
DUMPER
VAN
FUEL
CEMENT
ARRESTS
CARS STOLEN
COACH
PLANE
HELICOPTER
TOW TRUCK
LIMO
TRASH
ARMORED VAN
BURGLARIES
ARMORED VANS STOLEN
MISSIONS FAILED
OVERLOADED
FINES PAID
TOTAL SPENT ON FUEL
INTEREST EARNED
DISTANCE TRAVELLED
TIME IN JAIL
LAST MISSION
Generated by ASP.NET Core on Linux using the Convoy Trucking API. Updates every 5 minutes. See the original SVG image.

~!!!~ Watch my Police cars collection in the link below ~!!!~

[hide=link]http://imgur.com/a/gaJTT[/hide]

MikeMan



Marccc

Quote from: nyolc8 on February 20, 2015, 20:34
People who have problems with this (or with my other scripts), try these files, I use these, all files which related to cleo: http://speedy.sh/JNrtS/mycleo.zip

Of course, MAKE BACKUP first!


I used your files and when i try to join a server i get the error:
Error loading plugin NewOpcodes.cleo

LAST SEEN
TOTAL TIME ON SERVER
SCORE
TRUCK LOADS
CONVOY SCORE
ACHIEVEMENTS
ARTIC
DUMPER
VAN
FUEL
CEMENT
ARRESTS
CARS STOLEN
COACH
PLANE
HELICOPTER
TOW TRUCK
LIMO
TRASH
ARMORED VAN
BURGLARIES
ARMORED VANS STOLEN
MISSIONS FAILED
OVERLOADED
FINES PAID
TOTAL SPENT ON FUEL
INTEREST EARNED
DISTANCE TRAVELLED
TIME IN JAIL
LAST MISSION
Generated by ASP.NET Core on Linux using the Convoy Trucking API. Updates every 5 minutes. See the original SVG image.

~!!!~ Watch my Police cars collection in the link below ~!!!~

[hide=link]http://imgur.com/a/gaJTT[/hide]

nyolc8

Marccc: Try to use hoodlum gta_sa.exe (almost every mod made for that). Exe is important because the memory addresses are different across different exe versions.

MikeMan: No, use imvehft for that.

Marccc

Quote from: nyolc8 on February 20, 2015, 20:58
Marccc: Try to use hoodlum gta_sa.exe (almost every mod made for that). Exe is important because the memory addresses are different across different exe versions.

MikeMan: No, use imvehft for that.


Thanks it works now!!!

LAST SEEN
TOTAL TIME ON SERVER
SCORE
TRUCK LOADS
CONVOY SCORE
ACHIEVEMENTS
ARTIC
DUMPER
VAN
FUEL
CEMENT
ARRESTS
CARS STOLEN
COACH
PLANE
HELICOPTER
TOW TRUCK
LIMO
TRASH
ARMORED VAN
BURGLARIES
ARMORED VANS STOLEN
MISSIONS FAILED
OVERLOADED
FINES PAID
TOTAL SPENT ON FUEL
INTEREST EARNED
DISTANCE TRAVELLED
TIME IN JAIL
LAST MISSION
Generated by ASP.NET Core on Linux using the Convoy Trucking API. Updates every 5 minutes. See the original SVG image.

~!!!~ Watch my Police cars collection in the link below ~!!!~

[hide=link]http://imgur.com/a/gaJTT[/hide]

Miss101

Man, you got no idea how thankful I am for this mod.Over the years I always changed vehicle mods or added colormods or timecync mods just to have a different siren flash.All other mods like EVLS crashed my game but this one works PERFECTLY even with the cool user interface.And pretty pretty lights!  :3

Man, if people made mods like this on daily basis.

nyolc8

Thanks  :D

edit: I have another idea to remove siren lights, not blocking siren but somehow tell the game to use the swat truck siren instead of copcar siren (swat truck only have sound)

I even found where the siren light types stored in memory, and I looking at it right now, but I just can't figure out how this works, so how it could be called into action or something... ><

edit: just messing with the code and managed to make siren sound play in every cop car always, even when siren is not enabled xd