18.07.2014, 16:46
When I get into truck, I do not appear that the " You are not trucker " , not going to buy anything.
public OnPlayerEnterVehicle
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;
}