Pedro001 Posted July 30, 2020 Share Posted July 30, 2020 Does anyone have any Idea on why bots won't die? Mods like bank robbery, and project hacking, the bots just won't die. Thank you. Link to comment
Moderators Patrick Posted July 30, 2020 Moderators Share Posted July 30, 2020 That's not enough information. How do you create the bots, which resource do you using? Peds are created on server or client side? Link to comment
Pedro001 Posted August 4, 2020 Author Share Posted August 4, 2020 On 30/07/2020 at 17:34, Patrick said: That's not enough information. How do you create the bots, which resource do you using? Peds are created on server or client side? This is how they are being created. seg1 = createPed(164, -2660.91235, 1399.24121, 906.46094, 0 ) setElementInterior(seg1,3) setTimer(setElementHealth,1000,0,seg1,100) setTimer(setElementFrozen,1000,1,seg1,true) setElementData ( seg1, "ModoPassivo", true ) Link to comment
Moderators Patrick Posted August 4, 2020 Moderators Share Posted August 4, 2020 @Pedro001 Because you set back ped's HP to 100 in every second. setTimer(setElementHealth,1000,0,seg1,100) Link to comment
Pedro001 Posted August 4, 2020 Author Share Posted August 4, 2020 34 minutes ago, Patrick said: @Pedro001 Because you set back ped's HP to 100 in every second. setTimer(setElementHealth,1000,0,seg1,100) Will setElementHealth(seg1, 100) work? or how can I put it so the ped can die? Link to comment
Moderators Patrick Posted August 4, 2020 Moderators Share Posted August 4, 2020 Just now, Pedro001 said: Will setElementHealth(seg1, 100) work? or how can I put it so the ped can die? Just remove this line, ped's HP is 100 by default. Link to comment
Pedro001 Posted August 4, 2020 Author Share Posted August 4, 2020 1 minute ago, Patrick said: Just remove this line, ped's HP is 100 by default. I did it, but they still won't die. Link to comment
Scripting Moderators xLive Posted August 4, 2020 Scripting Moderators Share Posted August 4, 2020 (edited) it should work, maybe you cancelling the damage on client or you didn't post the rest of your code Edited August 4, 2020 by xLive Link to comment
Moderators Patrick Posted August 4, 2020 Moderators Share Posted August 4, 2020 Yeah, or something else prevents it, other resource for example. Link to comment
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