SA-MP Forums Archive
Help With Stocks - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help With Stocks (/showthread.php?tid=243163)



Help With Stocks - Rokzlive - 21.03.2011

Does anyone know the stock related to this function?

GetPlayerDistanceToPointEx


Re: Help With Stocks - Stigg - 21.03.2011

Do you mean this ?

pawn Код:
stock GetPlayerDistanceToPointEx(playerid,Float:x,Float:y,Float:z) {
    new Float:x1,Float:y1,Float:z1;
    new Float:dis;
    GetPlayerPos(playerid,x1,y1,z1);
    dis = floatsqroot((x-x1)*(x-x1)+(y-y1)*(y-y1)+(z-z1)*(z-z1));
    return floatround(dis);
}



Re: Help With Stocks - Rokzlive - 21.03.2011

Where did you find it :O