12.02.2015, 11:37
Which values that would be assigned per Pizza Delivered?
@Edit
400/10 = 40, so I put 40 for this value.
sorry for my bad english.
@Edit
400/10 = 40, so I put 40 for this value.
PHP код:
#include <a_samp>
forward PayDay();
#define DELIVERED_PIZZA_VALUE (40) // Change if you wish
new
DeliveredPizza[MAX_PLAYERS], // Pizzas Delivered
PizzaDelivery[MAX_PLAYERS]; // If he works of Pizza Delivery
public OnFilterScriptInit()
{
SetTimer("PayDay", 60000*60, true); // Payday Of one in one hour
return 1;
}
public PayDay()
{
for(new i; i < MAX_PLAYERS; i++)
if(PizzaDelivery[i])
GivePlayerMoney(i, DeliveredPizza[i]*DELIVERED_PIZZA_VALUE);
return 1;
}