Refuel help!
#2

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

    new mypoint = -1;
    for (new i=0; i<MAX_POINTS; i++)
    {
        if(strcmp(Points[i][Name], "Fossil Fuel Company", true) == 0)
        {
            mypoint = i;
        }
    }  
    KillTimer(RefuelingVehicleTimer[playerid]);
    return 1;
}
Or set the repeat to false on your timer
Reply


Messages In This Thread
Refuel help! - by WG Chinn - 07.08.2011, 22:25
Re: Refuel help! - by [HiC]TheKiller - 07.08.2011, 22:45
[No subject] - by WG Chinn - 07.08.2011, 23:08

Forum Jump:


Users browsing this thread: 2 Guest(s)