09.12.2014, 22:58
pawn Код:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 448)//Pizza
{
if(Pizzaboy[playerid] == 1)
{
new rand = random(sizeof(PizzaCP));
SetPlayerCheckpoint(playerid, PizzaCP[rand][0], PizzaCP[rand][1], PizzaCP[rand][2], 5);
GivePlayerMoney(playerid, PayRandom[rand][0]);// here it try to pay the player a float amount GameTextForPlayer(playerid, "~y~Go deliver them pizzas", 1000, 5);
}
pawn Код:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 448)//Pizza
{
if(Pizzaboy[playerid] == 1)
{
new rand = random(sizeof(PizzaCP));
new prand = random(sizeof(RandomPay));// Change RandomPay to ehat you have named your random pay.
SetPlayerCheckpoint(playerid, PizzaCP[rand][0], PizzaCP[rand][1], PizzaCP[rand][2], 5);
GivePlayerMoney(playerid, PayRandom[prand][0]);
GameTextForPlayer(playerid, "~y~Go deliver them pizzas", 1000, 5);
}