Fuel Bug
#4

pawn Код:
stock StopRefueling(playerid)
{
    GivePlayerCash(playerid, -5);
    SendFormattedMessage(playerid, COLOR_WHITE,"Your vehicle's tank has been refilled for $100.");

    new mypoint = -1;
    for (new i=0; i<MAX_POINTS; i++)
    {
        if(strcmp(Points[i][Name], "Fossil Fuel Company", true) == 0)
        {
            mypoint = i;
        }
    }
    for(new i = 0; i < sizeof(FamilyInfo); i++)
    {
        if(strcmp(Points[mypoint][Owner], FamilyInfo[i][FamilyName], true) == 0)
        {
            FamilyInfo[i][FamilyBank] = FamilyInfo[i][FamilyBank]+(RefuelingVehiclePrice[playerid]/10);
        }
    }

    RefuelingVehicle[playerid] = 0; RefuelingVehiclePrice[playerid] = 0; KillTimer(RefuelingVehicleTimer[playerid] = 6000);
    return true;
}
Reply


Messages In This Thread
Fuel Bug - by Lunixx - 09.08.2015, 09:16
Re: Fuel Bug - by dominik523 - 09.08.2015, 09:42
Re: Fuel Bug - by Battlezone - 09.08.2015, 10:09
Re: Fuel Bug - by Lunixx - 09.08.2015, 10:16
Re: Fuel Bug - by Battlezone - 09.08.2015, 10:21
Re: Fuel Bug - by Vince - 09.08.2015, 10:22

Forum Jump:


Users browsing this thread: 1 Guest(s)