Teleport doesnt work Armyvehicle
#1

hi, i make a checkpoint for army vehicles!

when a army people drive in a army vehicle and drive to the checkpoint? the teleport doesnt work :S

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{  if(pdebug == 1){printf("[DEBUG] OnPlayerEnterCheckpoint(%d)", playerid);}

  if(IsPlayerInRangeOfPoint(playerid, 2, 134.8781,1932.6945,18.9681))
  {
    new vehicleid;
    vehicleid = GetPlayerVehicleID(playerid);
    if(vehicleid == ArmyVehicle[playerid])
        {
          if(PlayerInfo[playerid][pRank] == 2)
            {
                SetPlayerPos(playerid, 2347.8101,2420.2856,10.5474);
            }
        }
    }
    return 1;
}
thanks
Reply
#2

Bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)