Resource icon

CLEO Release SPRUNK.cs - drink sprunk anywhere

CLEO related
Status
Not open for further replies.

x7F8

Member
Joined
Jul 31, 2014
Messages
21
Reaction score
2
Drink sprunk anywhere.

Like this:


sprunk: set to 97 hp
Code:
{$CLEO}

0000:

:SPRUNK_78
wait 0
if
0ADC: "XX"
then
    04ED: load_animation "VENDING"
    while 84EE: not animation "VENDING" loaded
        wait 0
    end
    0605: actor $PLAYER_ACTOR "VEND_USE" IFP "VENDING" framedelta 4.1 loop 0 lockX 0 lockY 0 lockF 0 time -1
    print "~b~Sprunk!" 2000
    wait 400
    for $not_used = 1 to 15 step 1
        Actor.Health($PLAYER_ACTOR) = 97
        wait 100
    end
end
jump @SPRUNK_78

sprunk2: adds 35 hp only
Code:
{$CLEO}

0000:

:SPRUNK_78
wait 0
if
0ADC: "XX"
then
    04ED: load_animation "VENDING"
    while 84EE: not animation "VENDING" loaded
        wait 0
    end
    0605: actor $PLAYER_ACTOR "VEND_USE" IFP "VENDING" framedelta 4.1 loop 0 lockX 0 lockY 0 lockF 0 time -1
    print "~b~Sprunk!" 2000
    wait 400
    0@ = Actor.Health($PLAYER_ACTOR)
    0@ += 35 
    for $not_used = 1 to 15 step 1
        Actor.Health($PLAYER_ACTOR) = 0@
        wait 100
    end
    0@ = Actor.Health($PLAYER_ACTOR)
    if
    0@ > 100
    then
        Actor.Health($PLAYER_ACTOR) = 100
    end
end
jump @SPRUNK_78
 

Attachments

  • SPRUNK.cs
    17.8 KB · Views: 162
  • SPRUNK2.cs
    18 KB · Views: 297

DzkAy

Well-known member
Joined
Feb 20, 2014
Messages
472
Reaction score
1
How about making it more realistic ?  :ppffh:
Each time 35HP like a real sprunk_machine  :eek:h_stop_it_u:
something like this
Code:
0@ = Actor.Health($PLAYER_ACTOR)
0@ += 35 
Actor.Health($PLAYER_ACTOR) = 0@
 

m1zg4rd_PL

Well-known member
Joined
Jul 19, 2013
Messages
222
Reaction score
0
D.Kay link said:
How about making it more realistic ?  :ppffh:

Maybe he means some servers ignore increasing HP when player animation is drinking sprunk, and then health hack works?
 

x7F8

Member
Joined
Jul 31, 2014
Messages
21
Reaction score
2
[member=10429]D.Kay[/member]
Made v2, thanks for suggestion

Activation key is XX
 

SKillNasr

Active member
Joined
Jun 29, 2014
Messages
54
Reaction score
0
when i have compile it then he give me error
i have change the Print  :computer_guy:
Code:
{$CLEO}

0000:

:SPRUNK_78
wait 0
if
0ADC: "XX"
then
    04ED: load_animation "VENDING"
    while 84EE: not animation "VENDING" loaded
        wait 0
    end
    0605: actor $PLAYER_ACTOR "VEND_USE" IFP "VENDING" framedelta 4.1 loop 0 lockX 0 lockY 0 lockF 0 time -1
0ACD: show_text_highpriority "~R~DRINK!" time 1337 
    wait 400
    0@ = Actor.Health($PLAYER_ACTOR)
    0@ += 35 
    for $not_used = 1 to 15 step 1
        Actor.Health($PLAYER_ACTOR) = 0@
        wait 100
    end
    0@ = Actor.Health($PLAYER_ACTOR)
    if
    0@ > 100
    then
        Actor.Health($PLAYER_ACTOR) = 100
    end
end
jump @SPRUNK_78
i dont know if he are work i will test it know ;) ( ACTIVATE KEY  XX )  :ugbase:
AMAZING JOB TY  bin]7FF now i didnt get banned :D  :trollface:
 

ClausBear

Expert
Joined
Aug 19, 2013
Messages
647
Reaction score
0
HHHJJJKKK link said:
can players see sprunk?

they can see u doing the drinking animation. However if you do it on a bike it only displays it for yourself and none others.
 

SKillNasr

Active member
Joined
Jun 29, 2014
Messages
54
Reaction score
0
ClausBear link said:
they can see u doing the drinking animation. However if you do it on a bike it only displays it for yourself and none others.

if you do it on car / bike your samp be crashed ( TESTED !) 
 
Status
Not open for further replies.
Top