hello ugbase

Status
Not open for further replies.

GoodMan

Active member
Joined
Jun 4, 2014
Messages
141
Reaction score
0
* Name of the mod: MYOWNGODMODE.CS
[size=x-small]*Where you saw it: NEVER SEEN BEFORE.[/size]
[size=x-small]* What do you want: I WANT SOMEONE TO EXPLAIN ME WHAT LINE IS WRONG OR WHAT I'M DONIG WRONG HERE(CLEO SCRPITER N00B)[/size]

Hello ugbase,

its me again

I am making this thread with purppose to help me understand what i've done in this cleo script..

Here is the code(full):
Code:
{$CLEO .cs}

thread 'mashit' 

:GoodMan_37
wait 0
if
0ADC: "-"
jf @GoodMan_37 
if 
Player.Defined($PLAYER_CHAR)
jf @GoodMan_37 
if 
Player.Controllable($PLAYER_CHAR)
jf @GoodMan_37 
if 
Actor.Driving($PLAYER_ACTOR)
jf @GoodMan_37 
03C0: 0@ = actor $PLAYER_ACTOR car 
1@ = Car.Health(0@)
if 
not 1@ > 280 
jf @GoodMan_37 
Car.SetImmunities(0@, 0, 0, 0, 1, 0)
018C: play_sound 1057 at 0.0 0.0 0.0 
chatmsg "{8080ff}Blowuper {00ff00}ON" 16777215
//wait 10000 ms
//Car.SetImmunities(0@, 0, 0, 0, 0, 0)
//chatmsg "{8080ff}Blowuper {00ff00}OFF" 16777215
jump @GoodMan_37
So yep.. as you can see my intention is to get in a vehicle(any) damage it and when the vehicle health reachs to -280 and down on, it sets a inmunity to collision damage(i can crash in buildings etc and never take damage so thats the goal.) I also,added a delay of 10 seconds and turn it off again. (Like auto turn on/off itself)


But its not working properly!!! help :c
 

4changesLeft

Well-known member
Joined
Apr 10, 2015
Messages
365
Reaction score
3
Ok first of all, never use Player.Defined.. always use opcode for that.
2nd, Player.Controllable is really not nessecary, I would remove it if i were you.
I think you'll understand the other changes by yourself


Code:
{$CLEO .cs}

thread 'mashit' 

:GoodMan_37
wait 0
if
0ADC: "-"
jf @GoodMan_37
jump @GoodMan_38

:GoodMan_38
wait 0 
if 
056D:   actor $PLAYER_ACTOR defined
jf @GoodMan_37 
if 
Actor.Driving($PLAYER_ACTOR)
jf @GoodMan_37 
0@ = Actor.CurrentCar($PLAYER_ACTOR)
1@ = Car.Health(0@)
if 
1@ < 280 
jf @GoodMan_37 
Car.SetImmunities(0@, 0, 0, 0, 1, 0)
018C: play_sound 1057 at 0.0 0.0 0.0 
0AF8: samp add_message_to_chat "{8080ff}Blowuper {00ff00}ON" 16777215
wait 10000
Car.SetImmunities(0@, 0, 0, 0, 0, 0)
0AF8: samp add_message_to_chat "{8080ff}Blowuper {00ff00}OFF" 16777215
jump @GoodMan_37


Also those are the proofs for the car
(opcode 02AC)
BP = Bulletproof
FP = Fireproof
EP = Explosion-proof
CP = Collision-proof
MP = Melee-proof
 

GoodMan

Active member
Joined
Jun 4, 2014
Messages
141
Reaction score
0
Thanks for the help good sir!

But its not working, i give up i can'0t make it
 
Status
Not open for further replies.
Top