06.09.2016, 14:32
As the title says i want to give a player an amount of money per distance. this is the code but is not working
pawn Код:
distance = floatround(GetDistanceBetweenPoints(Position[0],Position[1], Position[2], gRandomPizza[rand][0], gRandomPizza[rand][1], gRandomPizza[rand][2]), floatround_round);
if(PlayerInfo[playerid][pPizzaSkill] == 1) pizzaprize[playerid] = random(15) + distance*(8/1000);