philz Posted December 29, 2022 Share Posted December 29, 2022 Hi, I'm working on a CLEO script that change player's health to 0 (means make them die) by writing command "/rgame + id" When i finished my code: {$CLEO .cs} {$USE CLEO+} 0000: NOP 0B34: samp register_client_command "rgame" to_label @Start [email protected] = 0 :main wait 0 if [email protected] == 1 jf @main [email protected] = 0 SAMP.CmdRet jump @main 0B2F: samp get_streamed_out_player_pos [email protected] to [email protected] [email protected] [email protected] :start wait 0 SAMP.IsCommandTyped([email protected]) if 0AD4: [email protected] = scan_string [email protected] format "%d" [email protected] if SAMP.IsPlayerConnected([email protected]) [email protected] = SAMP.GetActorHandleByPlayerID([email protected]) if 056D: actor [email protected] defined Actor.Health([email protected]) = -100 SAMP.CmdRet I go to test my script and here are the results: As you can see, when I try to change their health bars to 0 (make them die), what I get are the sounds of deaths and their health bar doesn't change anything. What's happening? and is there anything wrong? (Using SAMP 0.3DL-R1 with this SAMPFUNCS: https://www.blast.hk/threads/138813/) Thanks in advanced! Sorry for bad English :v Link to comment Share on other sites More sharing options...
philz Posted December 29, 2022 Author Share Posted December 29, 2022 @ZAZ king, helpp Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now