CLEO Help Help change 1 value

CLEO related
Status
Not open for further replies.

acknxwledge__

New member
Joined
May 18, 2020
Messages
2
Reaction score
0
Location
Argentina
Hello, I wanted to ask if someone can edit a cleo for me.

what it does is: become 0.5 seconds normal, and 0.5 seconds immortal, and it repeats.

What I am looking for is only to change two values, which is 2 seconds normal and 0.5 seconds immortal, and the immunities only bulletproof (BP 1 FP 0 EP 0 CP 0 MP 0),

I tried to do it myself with Sanny Builder but it gives me crash, I appreciate if someone can help me

Sorry for my english and ignorance

Code:
:MAIN
wait 0
if
0@ == 1
then
wait 2000
02AB: set_actor $PLAYER_ACTOR immunities BP 1 FP 0 EP 0 CP 0 MP 0
wait 500
02AB: set_actor $PLAYER_ACTOR immunities BP 0 FP 0 EP 0 CP 0 MP 0
end
SAMP.CmdRet()
jump @MAIN

I think this is how it should be done but I may be wrong
 

Attachments

  • Random-God .cs
    18 KB · Views: 1
  • 1602096387503.png
    1602096387503.png
    312 bytes · Views: 4

tieuthienthan

Active member
Joined
Nov 6, 2019
Messages
43
Reaction score
10
Location
Vietnam
I don't play SAMP 0.3.7 to test if this code works or not, so you can test it yourself.
Try this one
Code:
{$CLEO .cs}

0000:
wait 10000

while true
    wait 0
    if
        0256:   player $PLAYER_CHAR defined
    then
        wait 2000 // turn on after 2.0 seconds
        02AB: set_actor $PLAYER_ACTOR immunities BP 1 FP 0 EP 0 CP 0 MP 0
        wait 500 // turn off after 0.5 seconds
        02AB: set_actor $PLAYER_ACTOR immunities BP 0 FP 0 EP 0 CP 0 MP 0
    end
end
 

Attachments

  • Random-God.cs
    74 bytes · Views: 1
Last edited:
Status
Not open for further replies.
Top