Problems job
#1

When I get into truck, I do not appear that the " You are not trucker " , not going to buy anything.
Reply
#2

In fact, It doesn't work like this, Even if you don't get the Message when you enter the vehicle it doesn't mean you can't buy a vehicle.
Buying a vehicle is a command.
Please show me this.
pawn Код:
public OnPlayerEnterVehicle
Reply
#3

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    new car = gLastCar[playerid];
    if(IsPlayerConnected(playerid))
    {
        if (gGas[playerid] == 0)
        {
            gGas[playerid] = 1;
            GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~p~Fuel Info on", 5000, 5);
            PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
        }
            if(Gas[car] < 100) { Gas[car] = 100; }
        }
        return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)