Why this is not working?
#1

IT instant kills ME, its not even necesary to be lesser than 2 meeters..it ignores the distance and everything,...Its like the getclosestplayer detecs myself as a different player....I tried if target != playerid then do the damage, but then it does nothing, even when im closer the player

forward asd(playerid);
public asd(playerid)
{

new target = GetClosestPlayer(playerid);
new Float:dist = GetDistanceBetweenPlayers(playerid,target);

if( dist < 2)
{
SetPlayerHealth(target,0);
}

}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)