19.06.2013, 02:43
Quote:
try it might work dante said you needed help
Код:
public PlayerToPoint(Float:range, playerid, Float:x, Float:y, Float:z) { if(IsPlayerConnected(playerid) ) { new Float:oldposx, Float:oldposy, Float:oldposz; new Float:tempposx, Float:tempposy, Float:tempposz; GetPlayerPos(playerid, oldposx, oldposy, oldposz); tempposx = (oldposx -x); tempposy = (oldposy -y); tempposz = (oldposz -z); if (((tempposx < range) && (tempposx > -range)) && ((tempposy < range) && (tempposy > -range)) && ((tempposz < range) && (tempposz > -range))) } return 1; } |