27.07.2015, 03:42
I want use the function GetPlayerDistanceOfPoint but i want to transform the distance to cash, I mean if it's more far so it would give you more cash, it's pretty hard to explain it but i hope u understood me
new cash = floatround(GetPlayerDistanceFromPoint(playerid, 0.0, 0.0, 0.0));
GivePlayerMoney(playerid, cash);
new Float:distance = GetPlayerDistanceFromPoint(playerid,x,y,x);
if(distance < 10) return GivePlayerMoney(playerid,100);
else if(distance > 10 || distance < 20) return GivePlayerMoney(playerid,200);