Code:
public MyFunc( id )
{
new index, tmp;
get_user_aiming(id, index, tmp);
if(!is_user_connected(index) || !is_user_alive(index))
{
client_print(id, 4, "You're not aiming at someone");
}
else
{
new szUserName[33];
get_user_name(index, szUserName, 32);
client_print(id, 4, "Slapped %s", szUserName);
user_slap(index, 0);
}
}
Should work
Edit: LynX, he's not talking about getting the distances between 2 players. At least I don't think he is..
__________________