help , onplayerchekpoint
#1

Hi ,

pawn Код:
else if(IsPlayerInRangeOfPoint(playerid,5,2660.9827,-1592.3564,13.2341))
    {
        new tmpcar = GetPlayerVehicleID(playerid);
        if(IsAFuelTruck(tmpcar) && !IsTrailerAttachedToVehicle(tmpcar))
        {
            PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+5000;
            GivePlayerMoney(playerid, 5000);
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "Go back for buy items");
            SetPlayerCheckpoint(playerid, -212.9356,-244.8454,1.4219,5);
            truckerstart[playerid] = 0;
        }
        else
        {
            SendClientMessage(playerid, COLOR_GRAD1, "   You are not in a Fuel Tanker or do not have a Trailer attached.");
            return 1;
        }
    }
But in game i can enter to chekpoint without IsTrailerAttachedToVehicle and i get money
Reply
#2

Well from what i got it should be like this:
pawn Код:
if(IsAFuelTruck(tmpcar) && IsTrailerAttachedToVehicle(tmpcar))
Reply
#3

Quote:
Originally Posted by DaRk_RaiN
Посмотреть сообщение
Well from what i got it should be like this:
pawn Код:
if(IsAFuelTruck(tmpcar) && IsTrailerAttachedToVehicle(tmpcar))
Yes thanks , i don't see "!"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)