22.08.2017, 12:05
Код:
new string[128]; new houseid = getClosestPizzaDelivery(playerid); new deliverytime = getMaxPizzaDeliveryTime(playerid, houseid); SetPlayerCheckpoint(playerid, Houses[houseid][EHouseX],Houses[houseid][EHouseY],Houses[houseid][EHouseZ],5.0); SetPVarInt(playerid, "IsOnPizzaRoute", 1); SetPVarFloat(playerid, "PizzaDeliveryTime", deliverytime); format(string, sizeof(string), "You have %d seconds to deliver the pizza to the destination.", deliverytime); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); return 1; }