18.05.2009, 22:02
i hav this so far i neeed it to work while a player is in a car
Code:
if (PlayerToPoint(5.0, playerid, MatsDeliver[i][Matsx], MatsDeliver[i][Matsy], MatsDeliver[i][Matsz])) { if(MatsHolding[playerid] > 0) { new payout = (50)*(MatsHolding[playerid]); format(string, sizeof(string), "* The Factory Gave You %d Materials from your %d Packages.", payout, MatsHolding[playerid]); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); PlayerInfo[playerid][pMats] += payout; MatsHolding[playerid] = 0; } }