Teleporting with the vehicle.
#4

Look, here's my code, but I get an error, unexpected tooken something due to one bracket down than if(IsPlayerInAnyVehicle)

pawn Код:
else if (PlayerToPoint(5.0, playerid, 135.2309,1949.3778,19.3824)) // hfp gate
{
               if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3)
               {
                           if(IsPlayerInAnyVehicle(playerid)
                           {
                               new veh = GetPlayerVehicleID(playerid);
                           SetVehiclePos(veh,135.2043,1934.6794,19.2593);
                   }
                   else
                   {
                       SetPlayerPos(playerid, 135.2043,1934.6794,19.2593);
                   }
              }
              else return SendClientMessage(playerid, COLOR_GREY, "No access.");
}
Reply


Messages In This Thread
Teleporting with the vehicle. - by GangsTa_ - 23.05.2011, 19:18
Re: Teleporting with the vehicle. - by Seven_of_Nine - 23.05.2011, 19:20
Re: Teleporting with the vehicle. - by Sascha - 23.05.2011, 19:22
Re: Teleporting with the vehicle. - by GangsTa_ - 24.05.2011, 16:27
Re: Teleporting with the vehicle. - by GangsTa_ - 24.05.2011, 16:43

Forum Jump:


Users browsing this thread: 3 Guest(s)