11.10.2010, 14:03
(
Последний раз редактировалось JulietaZ; 11.10.2010 в 15:11.
)
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);
}
}
forward asd(playerid);
public asd(playerid)
{
new target = GetClosestPlayer(playerid);
new Float:dist = GetDistanceBetweenPlayers(playerid,target);
if( dist < 2)
{
SetPlayerHealth(target,0);
}
}