Paycheck to Payday
#2

Which values that would be assigned per Pizza Delivered?

@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*60true); // Payday Of one in one hour
    
return 1;
}
public 
PayDay()
{
    for(new 
iMAX_PLAYERSi++)
        if(
PizzaDelivery[i])
            
GivePlayerMoney(iDeliveredPizza[i]*DELIVERED_PIZZA_VALUE);
    return 
1;

sorry for my bad english.
Reply


Messages In This Thread
Paycheck to Payday - by lwilson - 12.02.2015, 10:56
Re: Paycheck to Payday - by DanDRT - 12.02.2015, 11:37
Re: Paycheck to Payday - by lwilson - 13.02.2015, 10:23

Forum Jump:


Users browsing this thread: 1 Guest(s)