16.08.2012, 10:24
This could be useful:
pawn Код:
stock IsPlayerNearPlayer(playerid, n_playerid, Float:radius){ //CoaPsyFactor
new Float:npx, Float:npy, Float:npz;
GetPlayerPos(n_playerid, npx, npy, npz);
if(IsPlayerInRangeOfPoint(playerid, radius, npx, npy, npz)){
return true;
}else{
return false;
}
}