/refuel help
#5

PHP Code:
    if(strcmp(cmd"/refuel"true) == 0
    { 
        if(
IsPlayerConnected(playerid)) 
        { 
            if(
IsAtGasStation(playerid)) 
            { 
                if(
Gas[idcar] <= 99
                { 
                    
TogglePlayerControllable(playerid0); 
                    
GameTextForPlayer(playerid,"~w~~n~~n~~n~~n~~n~~n~~n~~n~~n~Re-Fueling Vehicle, please wait",2000,3); 
                    
SetTimer("Fillup",RefuelWait,0); 
                    
Refueling[playerid] = 1;
                    
GivePlayerMoney(playerid, -100); //Change the 100 to what you want the price for gas to be
                

                else 
                { 
                    
GameTextForPlayer(playerid,"~r~~n~~n~~n~~n~~n~~n~~n~~n~~n~Gas can is full",2000,3); 
                } 
            } 
            else 
            { 
                
SendClientMessage(playerid,COLOR_GREY,"** You're not at a Gas Station!"); 
            } 
        } 
        return 
1
    } 
Reply


Messages In This Thread
/refuel help - by Godzilla8957 - 10.03.2013, 13:59
Re: /refuel help - by Threshold - 10.03.2013, 14:01
Re: /refuel help - by Gingster - 10.03.2013, 14:08
Re: /refuel help - by thegreathom - 10.03.2013, 14:08
Re: /refuel help - by Don_Cage - 10.03.2013, 14:29

Forum Jump:


Users browsing this thread: 1 Guest(s)