PHP Code:
new id = read_data(2)
new iOrigin[3]
iOrigin[0] = read_data(3)
iOrigin[1] = read_data(4)
iOrigin[2] = read_data(5)
new iPlayerOrigin[3]
get_user_origin(id, iPlayerOrigin)
new iDistance = get_distance(iPlayerOrigin, iOrigin)
new name[35];
get_user_name(id,name,34);
ColorChat(0, RED, "^x03%s^x01 spray'd^x04 %d units^x01 high!",name,iDistance);
I need to get the distance from ground, not the person. How can i do that?