View Single Post
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 05-27-2020 , 07:01   Re: Revive a player in a certain radius
Reply With Quote #2

Well, i know that this line is causing you the trouble.

PHP Code:
if((fOrigin[i][0] == fPoss[id][0]) && (fOrigin[i][1] == fPoss[id][1]) && (fOrigin[i][2] == fPoss[id][2]) 
This code is actually telling us, that the reviver needs to be on the EXACT SAME SPOT the victim died, if not, the reviving function will not work.

I would suggest using random_float() for this.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be