SA-MP Forums Archive
help , onplayerchekpoint - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help , onplayerchekpoint (/showthread.php?tid=439303)



help , onplayerchekpoint - morocco - 24.05.2013

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


Re: help , onplayerchekpoint - DaRk_RaiN - 24.05.2013

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



Re : Re: help , onplayerchekpoint - morocco - 24.05.2013

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 "!"