CLEO Help Cleo setplayerhealth?

CLEO related
Status
Not open for further replies.

Wut

Well-known member
Joined
Mar 1, 2013
Messages
338
Reaction score
1
How can I set the player health to 0 in cleo?
I'm trying to make a simple cleo respawn script..

{$VERSION 3.1.0027}
{$CLEO .cs}
thread 'Respawn'
:Respawn_01
wait 0
if
0AB0: key_pressed 123
else_jump @Respawn_01
// SET PLAYER HEALTH to 0
jump @Respawn_01


How can I use sampfuncs? Where i can find all the functions?
 

xzytro

God
Joined
Apr 1, 2013
Messages
2,294
Reaction score
7
0223: set_actor $PLAYER_ACTOR health_to 0


If you want to find more opcodes, in sanny builder software hit Altgr + 2, and search. That's what i have done to find the opcode above. I just pressed Altgr + 2, then searched "health", and found this.
 

Wut

Well-known member
Joined
Mar 1, 2013
Messages
338
Reaction score
1
0223: set_actor $PLAYER_ACTOR health_to 0


If you want to find more opcodes, in sanny builder software hit Altgr + 2, and search. That's what i have done to find the opcode above. I just pressed Altgr + 2, then searched "health", and found this.


I didnt find it..
http://postimg.org/image/hqerxpicj/


Is there a way to respawn a player?
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
271
[quote author="anilture"]0223: set_actor $PLAYER_ACTOR health_to 0


If you want to find more opcodes, in sanny builder software hit Altgr + 2, and search. That's what i have done to find the opcode above. I just pressed Altgr + 2, then searched "health", and found this.


I didnt find it..
http://postimg.org/image/hqerxpicj/


Is there a way to respawn a player?[/quote]

Replace 2@ with $PLAYER_ACTOR, and 500 with 0.
 
Status
Not open for further replies.
Top